@@ -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(sprintf('Unsupported driver [%s].', $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, |
@@ -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; |