@@ -31,7 +31,7 @@ |
||
| 31 | 31 | */ |
| 32 | 32 | public function send($notifiable, Notification $notification) |
| 33 | 33 | { |
| 34 | - if (! $channel = $notifiable->routeNotificationFor('discord')) { |
|
| 34 | + if (!$channel = $notifiable->routeNotificationFor('discord')) { |
|
| 35 | 35 | return; |
| 36 | 36 | } |
| 37 | 37 | |
@@ -54,19 +54,19 @@ discard block |
||
| 54 | 54 | */ |
| 55 | 55 | public function handle() |
| 56 | 56 | { |
| 57 | - if (! $this->token) { |
|
| 57 | + if (!$this->token) { |
|
| 58 | 58 | $this->error('You must paste your Discord token (App Bot User token) into your `services.php` config file.'); |
| 59 | 59 | $this->error('View the README for more info: https://github.com/laravel-notification-channels/discord#installation'); |
| 60 | 60 | |
| 61 | 61 | return -1; |
| 62 | 62 | } |
| 63 | 63 | |
| 64 | - if (! $this->confirm('Is the bot already added to your server?')) { |
|
| 64 | + if (!$this->confirm('Is the bot already added to your server?')) { |
|
| 65 | 65 | $clientId = $this->ask('What is your Discord app client ID?'); |
| 66 | 66 | |
| 67 | 67 | $this->warn('Add the bot to your server by visiting this link: https://discordapp.com/oauth2/authorize?&client_id='.$clientId.'&scope=bot&permissions=0'); |
| 68 | 68 | |
| 69 | - if (! $this->confirm('Continue?', true)) { |
|
| 69 | + if (!$this->confirm('Continue?', true)) { |
|
| 70 | 70 | return -1; |
| 71 | 71 | } |
| 72 | 72 | } |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | $response = $client->receive(); |
| 102 | 102 | $identified = Arr::get(json_decode($response, true), 'op') === 10; |
| 103 | 103 | |
| 104 | - if (! $identified) { |
|
| 104 | + if (!$identified) { |
|
| 105 | 105 | $this->error("Discord responded with an error while trying to identify the bot: $response"); |
| 106 | 106 | |
| 107 | 107 | return -1; |