@@ -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 | |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | $path = $this->envPath(); |
| 70 | - if (! file_exists($path)) { |
|
| 70 | + if (!file_exists($path)) { |
|
| 71 | 71 | $this->displayConnection($connection); |
| 72 | 72 | |
| 73 | 73 | return; |
@@ -88,14 +88,14 @@ discard block |
||
| 88 | 88 | */ |
| 89 | 89 | protected function putEnvToFile($connection, $path): bool |
| 90 | 90 | { |
| 91 | - if (! Str::contains(file_get_contents($path), 'SMS_CONNECTION')) { |
|
| 91 | + if (!Str::contains(file_get_contents($path), 'SMS_CONNECTION')) { |
|
| 92 | 92 | // create new entry |
| 93 | 93 | file_put_contents($path, PHP_EOL . "SMS_CONNECTION={$connection}" . PHP_EOL, FILE_APPEND); |
| 94 | 94 | } elseif ($this->option('always-no')) { |
| 95 | 95 | $this->comment('Sms default connection already exists. Skipping...'); |
| 96 | 96 | |
| 97 | 97 | return false; |
| 98 | - } elseif (! $this->isConfirmed()) { |
|
| 98 | + } elseif (!$this->isConfirmed()) { |
|
| 99 | 99 | $this->comment('Phew... No changes were made to your sms default connection.'); |
| 100 | 100 | |
| 101 | 101 | return false; |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | */ |
| 53 | 53 | public function connect(array $config) |
| 54 | 54 | { |
| 55 | - if (! isset($config['driver'])) { |
|
| 55 | + if (!isset($config['driver'])) { |
|
| 56 | 56 | throw new InvalidArgumentException('A driver must be specified.'); |
| 57 | 57 | } |
| 58 | 58 | |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | */ |
| 75 | 75 | protected function resolveDriver(string $driverClass, array $config): GatewayInterface |
| 76 | 76 | { |
| 77 | - if (! class_exists($driverClass) || ! in_array(GatewayInterface::class, class_implements($driverClass), true)) { |
|
| 77 | + if (!class_exists($driverClass) || !in_array(GatewayInterface::class, class_implements($driverClass), true)) { |
|
| 78 | 78 | throw new InvalidArgumentException("Unsupported driver [{$driverClass}]."); |
| 79 | 79 | } |
| 80 | 80 | |
@@ -102,8 +102,8 @@ discard block |
||
| 102 | 102 | */ |
| 103 | 103 | protected function formatMessage($message) |
| 104 | 104 | { |
| 105 | - if (! ($message instanceof MessageInterface)) { |
|
| 106 | - if (! is_array($message)) { |
|
| 105 | + if (!($message instanceof MessageInterface)) { |
|
| 106 | + if (!is_array($message)) { |
|
| 107 | 107 | $message = [ |
| 108 | 108 | 'content' => $message, |
| 109 | 109 | 'template' => $message, |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | $this->cacheManager->set($this->getPrefixedKey($number), $code, $ttl * 60); |
| 45 | - if (! $number instanceof SmsNumber) { |
|
| 45 | + if (!$number instanceof SmsNumber) { |
|
| 46 | 46 | $number = new SmsNumber($number); |
| 47 | 47 | } |
| 48 | 48 | |