Skip to content

Commit 547ee48

Browse files
irazasyedgithub-actions[bot]
authored andcommitted
Fix styling
1 parent 01c390b commit 547ee48

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

src/Console/Webhook/WebhookSetupCommand.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44

55
use Illuminate\Support\Str;
66
use Telegram\Bot\Bot;
7-
use Telegram\Bot\Helpers\Util;
8-
use Telegram\Bot\Laravel\Facades\Telegram;
97
use Telegram\Bot\Exceptions\TelegramSDKException;
8+
use Telegram\Bot\Helpers\Util;
109
use Telegram\Bot\Laravel\Console\ConsoleBaseCommand;
1110
use Throwable;
1211

@@ -59,7 +58,7 @@ protected function setupWebhook(Bot $bot): void
5958
->merge($config)
6059
->put('url', $this->webhookUrl($bot));
6160

62-
if(filled($secretToken)) {
61+
if (filled($secretToken)) {
6362
$params->put('secret_token', Util::secretToken($secretToken));
6463
}
6564

src/Http/Middleware/ValidateWebhook.php

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

55
use Closure;
66
use Illuminate\Http\Request;
7-
use Telegram\Bot\Helpers\Util;
87
use Telegram\Bot\Exceptions\TelegramSDKException;
8+
use Telegram\Bot\Helpers\Util;
99
use Telegram\Bot\Laravel\Facades\Telegram;
1010

1111
class ValidateWebhook

src/TelegramServiceProvider.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
namespace Telegram\Bot\Laravel;
44

5+
use Illuminate\Contracts\Support\DeferrableProvider;
56
use Illuminate\Support\Facades\Route;
67
use Illuminate\Support\ServiceProvider;
78
use Telegram\Bot\Api;
89
use Telegram\Bot\Bot;
910
use Telegram\Bot\BotManager;
10-
use Illuminate\Contracts\Support\DeferrableProvider;
1111
use Telegram\Bot\Laravel\Console\Command\CommandListCommand;
1212
use Telegram\Bot\Laravel\Console\Command\CommandMakeCommand;
1313
use Telegram\Bot\Laravel\Console\Command\CommandRegisterCommand;

tests/Facades/Telegram.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
<?php
22

3-
use Telegram\Bot\Objects\ResponseObject;
43
use Telegram\Bot\Laravel\Facades\Telegram;
4+
use Telegram\Bot\Objects\ResponseObject;
55

66
test('fake returns the given response', function () {
77
Telegram::fake([
88
ResponseObject::make([
9-
'id' => 123456789,
9+
'id' => 123456789,
1010
'first_name' => 'Test',
11-
'username' => 'testbot',
12-
])
11+
'username' => 'testbot',
12+
]),
1313
]);
1414

1515
$response = Telegram::sendMessage([
1616
'chat_id' => 987654321,
17-
'text' => 'Hello World',
17+
'text' => 'Hello World',
1818
]);
1919

2020
expect($response['id'])->toBe(123456789);

0 commit comments

Comments
 (0)