Skip to content

Commit 72528b7

Browse files
committed
Minor code tweaks, remove some unused "use"s
1 parent 9010a8e commit 72528b7

File tree

9 files changed

+9
-11
lines changed

9 files changed

+9
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
A Telegram Bot based on the official [Telegram Bot API]
99

10-
[![API Version](https://img.shields.io/badge/Bot%20API-5.7%20%28January%202022%29-32a2da.svg)](https://core.telegram.org/bots/api#december-30-2021)
10+
[![API Version](https://img.shields.io/badge/Bot%20API-5.7%20%28January%202022%29-32a2da.svg)](https://core.telegram.org/bots/api#january-31-2022)
1111
[![Join the bot support group on Telegram](https://img.shields.io/badge/telegram-@PHP__Telegram__Bot__Support-64659d.svg)](https://telegram.me/PHP_Telegram_Bot_Support)
1212
[![Donate](https://img.shields.io/badge/%F0%9F%92%99-Donate%20%2F%20Support%20Us-blue.svg)](#donate)
1313

src/Entities/BotCommandScope/BotCommandScopeDefault.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace Longman\TelegramBot\Entities\BotCommandScope;
44

55
use Longman\TelegramBot\Entities\Entity;
6-
use Longman\TelegramBot\Entities\InputMedia\InputMediaAnimation;
76

87
/**
98
* Class BotCommandScopeDefault

src/Entities/ChatMember/ChatMemberBanned.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class ChatMemberBanned extends Entity implements ChatMember
2222
protected function subEntities(): array
2323
{
2424
return [
25-
'user' => User::class
25+
'user' => User::class,
2626
];
2727
}
2828
}

src/Entities/ChatMember/ChatMemberLeft.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class ChatMemberLeft extends Entity implements ChatMember
2121
protected function subEntities(): array
2222
{
2323
return [
24-
'user' => User::class
24+
'user' => User::class,
2525
];
2626
}
2727
}

src/Entities/ChatMember/ChatMemberMember.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class ChatMemberMember extends Entity implements ChatMember
2121
protected function subEntities(): array
2222
{
2323
return [
24-
'user' => User::class
24+
'user' => User::class,
2525
];
2626
}
2727
}

src/Entities/ChatMember/ChatMemberRestricted.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class ChatMemberRestricted extends Entity implements ChatMember
3131
protected function subEntities(): array
3232
{
3333
return [
34-
'user' => User::class
34+
'user' => User::class,
3535
];
3636
}
3737
}

src/Entities/InputMedia/InputMediaAudio.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace Longman\TelegramBot\Entities\InputMedia;
1313

14-
use Longman\TelegramBot\Entities\ChatLocation;
1514
use Longman\TelegramBot\Entities\Entity;
1615

1716
/**

src/Entities/Sticker.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
namespace Longman\TelegramBot\Entities;
1313

14-
use phpDocumentor\Reflection\Types\Boolean;
15-
1614
/**
1715
* Class Sticker
1816
*

src/Request.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -932,7 +932,8 @@ private static function limitTelegramRequests(string $action, array $data = []):
932932
* @deprecated
933933
* @see Request::banChatMember()
934934
*
935-
* @param array $data
935+
* @param array $data
936+
*
936937
* @return ServerResponse
937938
*/
938939
public static function kickChatMember(array $data = []): ServerResponse
@@ -946,7 +947,8 @@ public static function kickChatMember(array $data = []): ServerResponse
946947
* @deprecated
947948
* @see Request::getChatMemberCount()
948949
*
949-
* @param array $data
950+
* @param array $data
951+
*
950952
* @return ServerResponse
951953
*/
952954
public static function getChatMembersCount(array $data = []): ServerResponse

0 commit comments

Comments
 (0)