Skip to content

Commit 9c84a28

Browse files
committed
php cs-fixer
1 parent 9f90848 commit 9c84a28

21 files changed

+2
-40
lines changed

src/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class Client
4545
*/
4646
public function __construct($token, HttpClientInterface $httpClient = null, $endpoint = null)
4747
{
48-
$this->api = new BotApi($token , $httpClient, $endpoint);
48+
$this->api = new BotApi($token, $httpClient, $endpoint);
4949
$this->events = new EventCollection();
5050
}
5151

src/Events/EventCollection.php

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

55
use Closure;
6-
use ReflectionFunction;
76
use TelegramBot\Api\Types\Update;
87

98
class EventCollection

src/Types/BackgroundTypeChatTheme.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,3 @@ public function setThemeName($themeName)
5151
$this->themeName = $themeName;
5252
}
5353
}
54-
55-
56-
57-

src/Types/CallbackGame.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@
77

88
class CallbackGame extends BaseType implements TypeInterface
99
{
10-
1110
}

src/Types/ChatBoostSource.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ public static function fromResponse($data)
6262
*/
6363
protected $user;
6464

65-
66-
6765
/**
6866
* @return string
6967
*/

src/Types/ChatBoostSourceGiveaway.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,3 @@ public function setIsUnclaimed(?bool $isUnclaimed): void
101101
$this->isUnclaimed = $isUnclaimed;
102102
}
103103
}
104-
105-
106-
107-
108-

src/Types/ChatMember.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ abstract class ChatMember extends BaseType implements TypeInterface
1515
*/
1616
protected static $requiredParams = ['status', 'user'];
1717

18-
1918
/**
2019
* Factory method to create a concrete ChatMember instance
2120
*

src/Types/ChatMemberAdministrator.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ class ChatMemberAdministrator extends ChatMember
3838
'custom_title' => true,
3939
];
4040

41-
4241
/**
4342
* True, if the bot is allowed to edit administrator privileges of that user
4443
*

src/Types/GiveawayCreated.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@
77

88
class GiveawayCreated extends BaseType implements TypeInterface
99
{
10-
1110
}

src/Types/InaccessibleMessage.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
namespace TelegramBot\Api\Types;
44

5-
use TelegramBot\Api\BaseType;
65
use TelegramBot\Api\InvalidArgumentException;
7-
use TelegramBot\Api\TypeInterface;
86

97
/**
108
* This object represents a unique message identifier.

src/Types/Inline/InlineKeyboardButton.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,3 @@ public function setPay($pay)
281281
$this->pay = $pay;
282282
}
283283
}
284-
285-
286-
287-

src/Types/Inline/SwitchInlineQueryChosenChat.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,3 @@ public function setAllowChannelChats($allowChannelChats)
146146
$this->allowChannelChats = $allowChannelChats;
147147
}
148148
}
149-
150-
151-
152-

src/Types/InputMedia/InputMediaDocument.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,3 @@ public function setDisableContentTypeDetection(?bool $disableContentTypeDetectio
210210
$this->disableContentTypeDetection = $disableContentTypeDetection;
211211
}
212212
}
213-
214-
215-
216-

src/Types/InputMedia/InputMediaPhoto.php

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

33
namespace TelegramBot\Api\Types\InputMedia;
44

5-
use TelegramBot\Api\Collection\CollectionItemInterface;
65
use TelegramBot\Api\InvalidArgumentException;
76

87
/**

src/Types/MaybeInaccessibleMessage.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,3 @@ public static function fromResponse($data)
2424
}
2525
}
2626
}
27-

src/Types/Message.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class Message extends BaseType implements TypeInterface
9393
'chat_shared' => ChatShared::class,
9494
'connected_website' => true,
9595
'write_access_allowed' => WriteAccessAllowed::class,
96-
// 'passport_data' => PassportData::class,
96+
// 'passport_data' => PassportData::class,
9797
'proximity_alert_triggered' => ProximityAlertTriggered::class,
9898
'boost_added' => ChatBoostAdded::class,
9999
'chat_background_set' => ChatBackground::class,
@@ -1108,7 +1108,6 @@ public function setText($text)
11081108
$this->text = $text;
11091109
}
11101110

1111-
11121111
public function getEntities()
11131112
{
11141113
return $this->entities;

src/Types/ReactionType.php

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

55
use TelegramBot\Api\BaseType;
6-
use TelegramBot\Api\InvalidArgumentException;
76
use TelegramBot\Api\TypeInterface;
87

98
abstract class ReactionType extends BaseType implements TypeInterface

src/Types/ReactionTypeEmoji.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,3 @@ protected function setEmoji($emoji)
5353
$this->emoji = $emoji;
5454
}
5555
}
56-

src/Types/VideoChatStarted.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@
77

88
class VideoChatStarted extends BaseType implements TypeInterface
99
{
10-
1110
}

tests/Events/EventCollectionTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ public function testHandle2($action, $checker, $update)
106106
return true;
107107
});
108108

109-
110109
$mockedEvent = $this->getMockBuilder(Event::class)
111110
->disableOriginalConstructor()
112111
->getMock();

tests/Types/UserTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ public function testFromResponseException2()
114114
]);
115115
}
116116

117-
118117
public function testSetAndGetFirstName()
119118
{
120119
$item = new User();

0 commit comments

Comments
 (0)