Skip to content

Commit 813acb0

Browse files
committed
Added php-cs-fixer
1 parent fa8a8ac commit 813acb0

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
/composer.lock
33

44
/.phpunit.result.cache
5+
6+
.php-cs-fixer.cache

composer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,15 @@
3131
}
3232
},
3333
"scripts": {
34-
"test": "@php vendor/bin/pest --fail-on-warning --profile"
34+
"test": "@php vendor/bin/pest --fail-on-warning --profile",
35+
"lint": "vendor/bin/php-cs-fixer fix ."
3536
},
3637
"require": {
3738
"guzzlehttp/guzzle": "^7.7",
3839
"php": ">=8.0"
3940
},
4041
"require-dev": {
42+
"friendsofphp/php-cs-fixer": "^3.46",
4143
"pestphp/pest": "^2.8"
4244
},
4345
"config": {

src/Exception/InvalidUpdateException.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@
44

55
namespace TelegramSDK\BotAPI\Exception;
66

7-
class InvalidUpdateException extends \InvalidArgumentException{ }
7+
class InvalidUpdateException extends \InvalidArgumentException
8+
{
9+
}

src/Telegram/Bot.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function __construct(
4040
?int $updatesMethod = null,
4141
string $apiURL = self::DEFAULT_API_URL,
4242
bool $replyWithPayload = false
43-
){
43+
) {
4444
$this->token = $token;
4545
$this->updatesMethod = $updatesMethod ?? -1; // No update method, will throw an exception on $this->updates()
4646
$this->apiURL = $apiURL;

0 commit comments

Comments
 (0)