Skip to content

Commit 9e35d80

Browse files
irazasyedStyleCIBot
authored andcommitted
Apply fixes from StyleCI
1 parent 04faac8 commit 9e35d80

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

src/Exceptions/CouldNotSendNotification.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class CouldNotSendNotification extends Exception
1919
*/
2020
public static function telegramRespondedWithAnError(ClientException $exception): self
2121
{
22-
if (!$exception->hasResponse()) {
22+
if (! $exception->hasResponse()) {
2323
return new static('Telegram responded with an error but no response body found');
2424
}
2525

src/Telegram.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
namespace NotificationChannels\Telegram;
44

55
use Exception;
6+
use Illuminate\Support\Str;
67
use GuzzleHttp\Client as HttpClient;
8+
use Psr\Http\Message\ResponseInterface;
79
use GuzzleHttp\Exception\ClientException;
8-
use Illuminate\Support\Str;
910
use NotificationChannels\Telegram\Exceptions\CouldNotSendNotification;
10-
use Psr\Http\Message\ResponseInterface;
1111

1212
/**
1313
* Class Telegram.

src/TelegramChannel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function send($notifiable, Notification $notification): void
4242
}
4343

4444
if ($message->toNotGiven()) {
45-
if (!$to = $notifiable->routeNotificationFor('telegram')) {
45+
if (! $to = $notifiable->routeNotificationFor('telegram')) {
4646
throw CouldNotSendNotification::chatIdNotProvided();
4747
}
4848

src/Traits/HasSharedLogic.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function options(array $options): self
8080
*/
8181
public function toNotGiven(): bool
8282
{
83-
return !isset($this->payload['chat_id']);
83+
return ! isset($this->payload['chat_id']);
8484
}
8585

8686
/**

tests/TelegramChannelTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
namespace NotificationChannels\Telegram\Test;
44

5+
use Mockery;
6+
use Orchestra\Testbench\TestCase;
57
use Illuminate\Notifications\Notifiable;
68
use Illuminate\Notifications\Notification;
7-
use Mockery;
8-
use NotificationChannels\Telegram\Exceptions\CouldNotSendNotification;
99
use NotificationChannels\Telegram\Telegram;
1010
use NotificationChannels\Telegram\TelegramChannel;
1111
use NotificationChannels\Telegram\TelegramMessage;
12-
use Orchestra\Testbench\TestCase;
12+
use NotificationChannels\Telegram\Exceptions\CouldNotSendNotification;
1313

1414
/**
1515
* Class ChannelTest.

tests/TelegramLocationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace NotificationChannels\Telegram\Test;
44

5-
use NotificationChannels\Telegram\TelegramLocation;
65
use PHPUnit\Framework\TestCase;
6+
use NotificationChannels\Telegram\TelegramLocation;
77

88
/**
99
* Class TelegramLocationTest.

tests/TelegramMessageTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace NotificationChannels\Telegram\Test;
44

5-
use NotificationChannels\Telegram\TelegramMessage;
65
use PHPUnit\Framework\TestCase;
6+
use NotificationChannels\Telegram\TelegramMessage;
77

88
/**
99
* Class TelegramMessageTest.

0 commit comments

Comments
 (0)