@@ -44,7 +44,7 @@ |
||
| 44 | 44 | 'content' => strpos($content, '【') === 0 ? $content : $signature . $content, |
| 45 | 45 | ] |
| 46 | 46 | ); |
| 47 | - if (! is_string($result)) { |
|
| 47 | + if (!is_string($result)) { |
|
| 48 | 48 | throw new CouldNotSendNotification('meilian response does only seem to accept string.'); |
| 49 | 49 | } |
| 50 | 50 | |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | { |
| 40 | 40 | $message = $this->getData($notifiable, $notification); |
| 41 | 41 | $receiver = $this->resolveReceiver($notifiable, $notification); |
| 42 | - if (! $receiver) { |
|
| 42 | + if (!$receiver) { |
|
| 43 | 43 | return; |
| 44 | 44 | } |
| 45 | 45 | |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | ); |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | - if (! $message instanceof SmsMessage) { |
|
| 55 | + if (!$message instanceof SmsMessage) { |
|
| 56 | 56 | return; |
| 57 | 57 | } |
| 58 | 58 | |
@@ -20,11 +20,11 @@ |
||
| 20 | 20 | |
| 21 | 21 | public function boot(): void |
| 22 | 22 | { |
| 23 | - if (! $this->app->runningInConsole()) { |
|
| 23 | + if (!$this->app->runningInConsole()) { |
|
| 24 | 24 | return; |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | - if (! $this->app instanceof Laravel) { |
|
| 27 | + if (!$this->app instanceof Laravel) { |
|
| 28 | 28 | return; |
| 29 | 29 | } |
| 30 | 30 | |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | $issuedCode = $this->cacheManager->get($this->getPrefixedKey($number)); |
| 36 | - if (! $issuedCode) { |
|
| 36 | + if (!$issuedCode) { |
|
| 37 | 37 | return false; |
| 38 | 38 | } |
| 39 | 39 | |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | $this->cacheManager->set($this->getPrefixedKey($number), $code, $ttl * 60); |
| 52 | - if (! $number instanceof SmsNumber) { |
|
| 52 | + if (!$number instanceof SmsNumber) { |
|
| 53 | 53 | $number = new SmsNumber($number); |
| 54 | 54 | } |
| 55 | 55 | |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | $path = $this->envPath(); |
| 81 | - if (! file_exists($path)) { |
|
| 81 | + if (!file_exists($path)) { |
|
| 82 | 82 | $this->displayConnection($connection); |
| 83 | 83 | |
| 84 | 84 | return; |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | */ |
| 100 | 100 | protected function putEnvToFile(string $connection, string $path): bool |
| 101 | 101 | { |
| 102 | - if (! Str::contains(file_get_contents($path), 'SMS_CONNECTION')) { |
|
| 102 | + if (!Str::contains(file_get_contents($path), 'SMS_CONNECTION')) { |
|
| 103 | 103 | // create new entry |
| 104 | 104 | file_put_contents($path, PHP_EOL . sprintf('SMS_CONNECTION=%s', $connection) . PHP_EOL, FILE_APPEND); |
| 105 | 105 | |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | return false; |
| 113 | 113 | } |
| 114 | 114 | |
| 115 | - if (! $this->isConfirmed()) { |
|
| 115 | + if (!$this->isConfirmed()) { |
|
| 116 | 116 | $this->comment('Phew... No changes were made to your sms default connection.'); |
| 117 | 117 | |
| 118 | 118 | return false; |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | */ |
| 49 | 49 | public function connect(array $config): self |
| 50 | 50 | { |
| 51 | - if (! isset($config['driver'])) { |
|
| 51 | + if (!isset($config['driver'])) { |
|
| 52 | 52 | throw new InvalidArgumentException('A driver must be specified.'); |
| 53 | 53 | } |
| 54 | 54 | |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | */ |
| 64 | 64 | protected function resolveDriver(string $driverClass, array $config): GatewayInterface |
| 65 | 65 | { |
| 66 | - if (! class_exists($driverClass) || ! in_array(GatewayInterface::class, class_implements($driverClass), true)) { |
|
| 66 | + if (!class_exists($driverClass) || !in_array(GatewayInterface::class, class_implements($driverClass), true)) { |
|
| 67 | 67 | throw new InvalidArgumentException(sprintf('Unsupported driver [%s].', $driverClass)); |
| 68 | 68 | } |
| 69 | 69 | |
@@ -87,8 +87,8 @@ discard block |
||
| 87 | 87 | */ |
| 88 | 88 | protected function formatMessage($message): MessageInterface |
| 89 | 89 | { |
| 90 | - if (! ($message instanceof MessageInterface)) { |
|
| 91 | - if (! is_array($message)) { |
|
| 90 | + if (!($message instanceof MessageInterface)) { |
|
| 91 | + if (!is_array($message)) { |
|
| 92 | 92 | $message = [ |
| 93 | 93 | 'content' => $message, |
| 94 | 94 | 'template' => $message, |