Skip to content

Commit

Permalink
PHPCS is our friend, let's make it happy
Browse files Browse the repository at this point in the history
  • Loading branch information
noplanman committed May 24, 2024
1 parent 14c77eb commit 99c49ad
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 14 deletions.
4 changes: 0 additions & 4 deletions src/Entities/Giveaway/Giveaway.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,13 @@
* @method string getPrizeDescription() Optional. Description of additional giveaway prize
* @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.
* @method int getPremiumSubscriptionMonthCount() Optional. The number of months the Telegram Premium subscription won from the giveaway will be active for
*
*/
class Giveaway extends Entity
{

protected function subEntities(): array
{
return [
'chats' => [Chat::class],
];
}

}
1 change: 0 additions & 1 deletion src/Entities/Giveaway/GiveawayCompleted.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/
class GiveawayCompleted extends Entity
{

protected function subEntities(): array
{
return [
Expand Down
2 changes: 1 addition & 1 deletion src/Entities/Giveaway/GiveawayCreated.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Longman\TelegramBot\Entities\Entity;

class GiveawayCreated extends Entity
class GiveawayCreated extends Entity
{

}
3 changes: 1 addition & 2 deletions src/Entities/Giveaway/GiveawayWinners.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@
*/
class GiveawayWinners extends Entity
{

protected function subEntities(): array
{
return [
'chat' => Chat::class,
'chat' => Chat::class,
'winners' => [User::class],
];
}
Expand Down
1 change: 0 additions & 1 deletion src/Entities/Message/InaccessibleMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,4 @@ protected function subEntities(): array
'chat' => Chat::class,
];
}

}
1 change: 0 additions & 1 deletion src/Entities/MessageOrigin/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,4 @@ public static function make(array $data, string $bot_username): Entity
$class = $type[$data['type']];
return new $class($data, $bot_username);
}

}
1 change: 0 additions & 1 deletion src/Entities/MessageOrigin/MessageOriginChannel.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,4 @@ protected function subEntities(): array
'chat' => Chat::class,
];
}

}
1 change: 0 additions & 1 deletion src/Entities/MessageOrigin/MessageOriginChat.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,4 @@ protected function subEntities(): array
'sender_chat' => Chat::class,
];
}

}
1 change: 0 additions & 1 deletion src/Entities/MessageOrigin/MessageOriginHiddenUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Longman\TelegramBot\Entities\MessageOrigin;

use Longman\TelegramBot\Entities\Entity;
use Longman\TelegramBot\Entities\MessageOrigin\MessageOrigin;

/**
* The message was originally sent by an unknown user.
Expand Down
1 change: 0 additions & 1 deletion src/Entities/MessageOrigin/MessageOriginUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,4 @@ protected function subEntities(): array
'sender_user' => User::class,
];
}

}

0 comments on commit 99c49ad

Please sign in to comment.