Skip to content

Commit 99c49ad

Browse files
committed
PHPCS is our friend, let's make it happy
1 parent 14c77eb commit 99c49ad

10 files changed

+2
-14
lines changed

src/Entities/Giveaway/Giveaway.php

-4
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,13 @@
1818
* @method string getPrizeDescription() Optional. Description of additional giveaway prize
1919
* @method array<string> getCountryCodes() Optional. A list of two-letter ISO 3166-1 alpha-2 country codes indicating the countries from which eligible users for the giveaway must come. If empty, then all users can participate in the giveaway. Users with a phone number that was bought on Fragment can always participate in giveaways.
2020
* @method int getPremiumSubscriptionMonthCount() Optional. The number of months the Telegram Premium subscription won from the giveaway will be active for
21-
22-
*
2321
*/
2422
class Giveaway extends Entity
2523
{
26-
2724
protected function subEntities(): array
2825
{
2926
return [
3027
'chats' => [Chat::class],
3128
];
3229
}
33-
3430
}

src/Entities/Giveaway/GiveawayCompleted.php

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
*/
1717
class GiveawayCompleted extends Entity
1818
{
19-
2019
protected function subEntities(): array
2120
{
2221
return [

src/Entities/Giveaway/GiveawayCreated.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Longman\TelegramBot\Entities\Entity;
66

7-
class GiveawayCreated extends Entity
7+
class GiveawayCreated extends Entity
88
{
99

1010
}

src/Entities/Giveaway/GiveawayWinners.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,10 @@
2525
*/
2626
class GiveawayWinners extends Entity
2727
{
28-
2928
protected function subEntities(): array
3029
{
3130
return [
32-
'chat' => Chat::class,
31+
'chat' => Chat::class,
3332
'winners' => [User::class],
3433
];
3534
}

src/Entities/Message/InaccessibleMessage.php

-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,4 @@ protected function subEntities(): array
1818
'chat' => Chat::class,
1919
];
2020
}
21-
2221
}

src/Entities/MessageOrigin/Factory.php

-1
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,4 @@ public static function make(array $data, string $bot_username): Entity
2222
$class = $type[$data['type']];
2323
return new $class($data, $bot_username);
2424
}
25-
2625
}

src/Entities/MessageOrigin/MessageOriginChannel.php

-1
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,4 @@ protected function subEntities(): array
2424
'chat' => Chat::class,
2525
];
2626
}
27-
2827
}

src/Entities/MessageOrigin/MessageOriginChat.php

-1
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,4 @@ protected function subEntities(): array
2323
'sender_chat' => Chat::class,
2424
];
2525
}
26-
2726
}

src/Entities/MessageOrigin/MessageOriginHiddenUser.php

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace Longman\TelegramBot\Entities\MessageOrigin;
44

55
use Longman\TelegramBot\Entities\Entity;
6-
use Longman\TelegramBot\Entities\MessageOrigin\MessageOrigin;
76

87
/**
98
* The message was originally sent by an unknown user.

src/Entities/MessageOrigin/MessageOriginUser.php

-1
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,4 @@ protected function subEntities(): array
2222
'sender_user' => User::class,
2323
];
2424
}
25-
2625
}

0 commit comments

Comments
 (0)