diff --git a/src/Client.php b/src/Client.php index 64522f1d..b9da94ba 100644 --- a/src/Client.php +++ b/src/Client.php @@ -45,7 +45,7 @@ class Client */ public function __construct($token, HttpClientInterface $httpClient = null, $endpoint = null) { - $this->api = new BotApi($token , $httpClient, $endpoint); + $this->api = new BotApi($token, $httpClient, $endpoint); $this->events = new EventCollection(); } diff --git a/src/Events/EventCollection.php b/src/Events/EventCollection.php index 6cfe1ffe..84d98abd 100644 --- a/src/Events/EventCollection.php +++ b/src/Events/EventCollection.php @@ -3,7 +3,6 @@ namespace TelegramBot\Api\Events; use Closure; -use ReflectionFunction; use TelegramBot\Api\Types\Update; class EventCollection diff --git a/src/Types/BackgroundTypeChatTheme.php b/src/Types/BackgroundTypeChatTheme.php index 961a3a69..6fb4d567 100644 --- a/src/Types/BackgroundTypeChatTheme.php +++ b/src/Types/BackgroundTypeChatTheme.php @@ -51,7 +51,3 @@ public function setThemeName($themeName) $this->themeName = $themeName; } } - - - - diff --git a/src/Types/CallbackGame.php b/src/Types/CallbackGame.php index c102a7c6..193daad7 100644 --- a/src/Types/CallbackGame.php +++ b/src/Types/CallbackGame.php @@ -7,5 +7,4 @@ class CallbackGame extends BaseType implements TypeInterface { - } diff --git a/src/Types/ChatBoostSource.php b/src/Types/ChatBoostSource.php index df77fee3..bb3a0917 100644 --- a/src/Types/ChatBoostSource.php +++ b/src/Types/ChatBoostSource.php @@ -62,8 +62,6 @@ public static function fromResponse($data) */ protected $user; - - /** * @return string */ diff --git a/src/Types/ChatBoostSourceGiveaway.php b/src/Types/ChatBoostSourceGiveaway.php index 42c6f4f6..941e45a8 100644 --- a/src/Types/ChatBoostSourceGiveaway.php +++ b/src/Types/ChatBoostSourceGiveaway.php @@ -101,8 +101,3 @@ public function setIsUnclaimed(?bool $isUnclaimed): void $this->isUnclaimed = $isUnclaimed; } } - - - - - diff --git a/src/Types/ChatMember.php b/src/Types/ChatMember.php index 564c778f..f8df0915 100644 --- a/src/Types/ChatMember.php +++ b/src/Types/ChatMember.php @@ -15,7 +15,6 @@ abstract class ChatMember extends BaseType implements TypeInterface */ protected static $requiredParams = ['status', 'user']; - /** * Factory method to create a concrete ChatMember instance * diff --git a/src/Types/ChatMemberAdministrator.php b/src/Types/ChatMemberAdministrator.php index bfe2d4e3..0ee56bf7 100644 --- a/src/Types/ChatMemberAdministrator.php +++ b/src/Types/ChatMemberAdministrator.php @@ -38,7 +38,6 @@ class ChatMemberAdministrator extends ChatMember 'custom_title' => true, ]; - /** * True, if the bot is allowed to edit administrator privileges of that user * diff --git a/src/Types/GiveawayCreated.php b/src/Types/GiveawayCreated.php index ac89ca24..61bb8cf8 100644 --- a/src/Types/GiveawayCreated.php +++ b/src/Types/GiveawayCreated.php @@ -7,5 +7,4 @@ class GiveawayCreated extends BaseType implements TypeInterface { - } diff --git a/src/Types/InaccessibleMessage.php b/src/Types/InaccessibleMessage.php index 603f0f0b..1f41e04e 100644 --- a/src/Types/InaccessibleMessage.php +++ b/src/Types/InaccessibleMessage.php @@ -2,9 +2,7 @@ namespace TelegramBot\Api\Types; -use TelegramBot\Api\BaseType; use TelegramBot\Api\InvalidArgumentException; -use TelegramBot\Api\TypeInterface; /** * This object represents a unique message identifier. diff --git a/src/Types/Inline/InlineKeyboardButton.php b/src/Types/Inline/InlineKeyboardButton.php index 02220940..afdf17ed 100644 --- a/src/Types/Inline/InlineKeyboardButton.php +++ b/src/Types/Inline/InlineKeyboardButton.php @@ -281,7 +281,3 @@ public function setPay($pay) $this->pay = $pay; } } - - - - diff --git a/src/Types/Inline/SwitchInlineQueryChosenChat.php b/src/Types/Inline/SwitchInlineQueryChosenChat.php index a4db670d..da88f394 100644 --- a/src/Types/Inline/SwitchInlineQueryChosenChat.php +++ b/src/Types/Inline/SwitchInlineQueryChosenChat.php @@ -146,7 +146,3 @@ public function setAllowChannelChats($allowChannelChats) $this->allowChannelChats = $allowChannelChats; } } - - - - diff --git a/src/Types/InputMedia/InputMediaDocument.php b/src/Types/InputMedia/InputMediaDocument.php index a7371f51..3012e232 100644 --- a/src/Types/InputMedia/InputMediaDocument.php +++ b/src/Types/InputMedia/InputMediaDocument.php @@ -210,7 +210,3 @@ public function setDisableContentTypeDetection(?bool $disableContentTypeDetectio $this->disableContentTypeDetection = $disableContentTypeDetection; } } - - - - diff --git a/src/Types/InputMedia/InputMediaPhoto.php b/src/Types/InputMedia/InputMediaPhoto.php index 7a6e66e4..891e2327 100644 --- a/src/Types/InputMedia/InputMediaPhoto.php +++ b/src/Types/InputMedia/InputMediaPhoto.php @@ -2,7 +2,6 @@ namespace TelegramBot\Api\Types\InputMedia; -use TelegramBot\Api\Collection\CollectionItemInterface; use TelegramBot\Api\InvalidArgumentException; /** diff --git a/src/Types/MaybeInaccessibleMessage.php b/src/Types/MaybeInaccessibleMessage.php index 2e0e235d..505b07d7 100644 --- a/src/Types/MaybeInaccessibleMessage.php +++ b/src/Types/MaybeInaccessibleMessage.php @@ -24,4 +24,3 @@ public static function fromResponse($data) } } } - diff --git a/src/Types/Message.php b/src/Types/Message.php index 8e491bb0..50377d70 100644 --- a/src/Types/Message.php +++ b/src/Types/Message.php @@ -93,7 +93,7 @@ class Message extends BaseType implements TypeInterface 'chat_shared' => ChatShared::class, 'connected_website' => true, 'write_access_allowed' => WriteAccessAllowed::class, -// 'passport_data' => PassportData::class, + // 'passport_data' => PassportData::class, 'proximity_alert_triggered' => ProximityAlertTriggered::class, 'boost_added' => ChatBoostAdded::class, 'chat_background_set' => ChatBackground::class, @@ -1108,7 +1108,6 @@ public function setText($text) $this->text = $text; } - public function getEntities() { return $this->entities; diff --git a/src/Types/ReactionType.php b/src/Types/ReactionType.php index 5d60ad6d..983473e7 100644 --- a/src/Types/ReactionType.php +++ b/src/Types/ReactionType.php @@ -3,7 +3,6 @@ namespace TelegramBot\Api\Types; use TelegramBot\Api\BaseType; -use TelegramBot\Api\InvalidArgumentException; use TelegramBot\Api\TypeInterface; abstract class ReactionType extends BaseType implements TypeInterface diff --git a/src/Types/ReactionTypeEmoji.php b/src/Types/ReactionTypeEmoji.php index d06a3aba..9fec8892 100644 --- a/src/Types/ReactionTypeEmoji.php +++ b/src/Types/ReactionTypeEmoji.php @@ -53,4 +53,3 @@ protected function setEmoji($emoji) $this->emoji = $emoji; } } - diff --git a/src/Types/VideoChatStarted.php b/src/Types/VideoChatStarted.php index 1ed59117..f67914c7 100644 --- a/src/Types/VideoChatStarted.php +++ b/src/Types/VideoChatStarted.php @@ -7,5 +7,4 @@ class VideoChatStarted extends BaseType implements TypeInterface { - } diff --git a/tests/Events/EventCollectionTest.php b/tests/Events/EventCollectionTest.php index 58634275..a5e18d8b 100644 --- a/tests/Events/EventCollectionTest.php +++ b/tests/Events/EventCollectionTest.php @@ -106,7 +106,6 @@ public function testHandle2($action, $checker, $update) return true; }); - $mockedEvent = $this->getMockBuilder(Event::class) ->disableOriginalConstructor() ->getMock(); diff --git a/tests/Types/UserTest.php b/tests/Types/UserTest.php index 70ef7388..61a29f00 100644 --- a/tests/Types/UserTest.php +++ b/tests/Types/UserTest.php @@ -114,7 +114,6 @@ public function testFromResponseException2() ]); } - public function testSetAndGetFirstName() { $item = new User();