Skip to content

Commit

Permalink
php cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
iGusev committed Jun 30, 2024
1 parent 9f90848 commit 9c84a28
Show file tree
Hide file tree
Showing 21 changed files with 2 additions and 40 deletions.
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down
1 change: 0 additions & 1 deletion src/Events/EventCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace TelegramBot\Api\Events;

use Closure;
use ReflectionFunction;
use TelegramBot\Api\Types\Update;

class EventCollection
Expand Down
4 changes: 0 additions & 4 deletions src/Types/BackgroundTypeChatTheme.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,3 @@ public function setThemeName($themeName)
$this->themeName = $themeName;
}
}




1 change: 0 additions & 1 deletion src/Types/CallbackGame.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@

class CallbackGame extends BaseType implements TypeInterface
{

}
2 changes: 0 additions & 2 deletions src/Types/ChatBoostSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ public static function fromResponse($data)
*/
protected $user;



/**
* @return string
*/
Expand Down
5 changes: 0 additions & 5 deletions src/Types/ChatBoostSourceGiveaway.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,3 @@ public function setIsUnclaimed(?bool $isUnclaimed): void
$this->isUnclaimed = $isUnclaimed;
}
}





1 change: 0 additions & 1 deletion src/Types/ChatMember.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ abstract class ChatMember extends BaseType implements TypeInterface
*/
protected static $requiredParams = ['status', 'user'];


/**
* Factory method to create a concrete ChatMember instance
*
Expand Down
1 change: 0 additions & 1 deletion src/Types/ChatMemberAdministrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ class ChatMemberAdministrator extends ChatMember
'custom_title' => true,
];


/**
* True, if the bot is allowed to edit administrator privileges of that user
*
Expand Down
1 change: 0 additions & 1 deletion src/Types/GiveawayCreated.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@

class GiveawayCreated extends BaseType implements TypeInterface
{

}
2 changes: 0 additions & 2 deletions src/Types/InaccessibleMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 0 additions & 4 deletions src/Types/Inline/InlineKeyboardButton.php
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,3 @@ public function setPay($pay)
$this->pay = $pay;
}
}




4 changes: 0 additions & 4 deletions src/Types/Inline/SwitchInlineQueryChosenChat.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,3 @@ public function setAllowChannelChats($allowChannelChats)
$this->allowChannelChats = $allowChannelChats;
}
}




4 changes: 0 additions & 4 deletions src/Types/InputMedia/InputMediaDocument.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,3 @@ public function setDisableContentTypeDetection(?bool $disableContentTypeDetectio
$this->disableContentTypeDetection = $disableContentTypeDetection;
}
}




1 change: 0 additions & 1 deletion src/Types/InputMedia/InputMediaPhoto.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace TelegramBot\Api\Types\InputMedia;

use TelegramBot\Api\Collection\CollectionItemInterface;
use TelegramBot\Api\InvalidArgumentException;

/**
Expand Down
1 change: 0 additions & 1 deletion src/Types/MaybeInaccessibleMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,3 @@ public static function fromResponse($data)
}
}
}

3 changes: 1 addition & 2 deletions src/Types/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -1108,7 +1108,6 @@ public function setText($text)
$this->text = $text;
}


public function getEntities()
{
return $this->entities;
Expand Down
1 change: 0 additions & 1 deletion src/Types/ReactionType.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion src/Types/ReactionTypeEmoji.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,3 @@ protected function setEmoji($emoji)
$this->emoji = $emoji;
}
}

1 change: 0 additions & 1 deletion src/Types/VideoChatStarted.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@

class VideoChatStarted extends BaseType implements TypeInterface
{

}
1 change: 0 additions & 1 deletion tests/Events/EventCollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ public function testHandle2($action, $checker, $update)
return true;
});


$mockedEvent = $this->getMockBuilder(Event::class)
->disableOriginalConstructor()
->getMock();
Expand Down
1 change: 0 additions & 1 deletion tests/Types/UserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ public function testFromResponseException2()
]);
}


public function testSetAndGetFirstName()
{
$item = new User();
Expand Down

0 comments on commit 9c84a28

Please sign in to comment.