@@ -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 |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | } |
37 | 37 | |
38 | 38 | $issuedCode = $this->cacheManager->get($this->getPrefixedKey($number)); |
39 | - if (! $issuedCode) { |
|
39 | + if (!$issuedCode) { |
|
40 | 40 | return false; |
41 | 41 | } |
42 | 42 | |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | } |
53 | 53 | |
54 | 54 | $key = $this->getPrefixedKey($number); |
55 | - if (! $number instanceof SmsNumber) { |
|
55 | + if (!$number instanceof SmsNumber) { |
|
56 | 56 | $number = new SmsNumber($number); |
57 | 57 | } |
58 | 58 |
@@ -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 | |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | protected function resolveDriver(string $driverClass, array $config): GatewayInterface |
67 | 67 | { |
68 | 68 | if ( |
69 | - ! class_exists($driverClass) || ! in_array( |
|
69 | + !class_exists($driverClass) || !in_array( |
|
70 | 70 | GatewayInterface::class, |
71 | 71 | (array) class_implements($driverClass), |
72 | 72 | true |
@@ -95,8 +95,8 @@ discard block |
||
95 | 95 | */ |
96 | 96 | protected function formatMessage($message): MessageInterface |
97 | 97 | { |
98 | - if (! ($message instanceof MessageInterface)) { |
|
99 | - if (! is_array($message)) { |
|
98 | + if (!($message instanceof MessageInterface)) { |
|
99 | + if (!is_array($message)) { |
|
100 | 100 | $message = [ |
101 | 101 | 'content' => $message, |
102 | 102 | 'template' => $message, |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | } |
87 | 87 | |
88 | 88 | $path = $this->envPath(); |
89 | - if (! file_exists($path)) { |
|
89 | + if (!file_exists($path)) { |
|
90 | 90 | $this->displayConnection($connection); |
91 | 91 | |
92 | 92 | return; |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | /** @var string $contents */ |
109 | 109 | $contents = file_get_contents($path); |
110 | 110 | |
111 | - if (! Str::contains($contents, 'SMS_CONNECTION')) { |
|
111 | + if (!Str::contains($contents, 'SMS_CONNECTION')) { |
|
112 | 112 | // create new entry |
113 | 113 | file_put_contents($path, PHP_EOL . sprintf('SMS_CONNECTION=%s', $connection) . PHP_EOL, FILE_APPEND); |
114 | 114 | |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | return false; |
122 | 122 | } |
123 | 123 | |
124 | - if (! $this->isConfirmed()) { |
|
124 | + if (!$this->isConfirmed()) { |
|
125 | 125 | $this->comment('Phew... No changes were made to your sms default connection.'); |
126 | 126 | |
127 | 127 | return false; |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | file_put_contents( |
131 | 131 | $path, |
132 | 132 | str_replace( |
133 | - 'SMS_CONNECTION=' . Config::get('sms.default'), |
|
133 | + 'SMS_CONNECTION=' . Config::get('sms.default'), |
|
134 | 134 | 'SMS_CONNECTION=' . $connection, |
135 | 135 | $contents |
136 | 136 | ) |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | */ |
145 | 145 | protected function displayConnection(string $connection): void |
146 | 146 | { |
147 | - Config::set('sms.default',$connection); |
|
147 | + Config::set('sms.default', $connection); |
|
148 | 148 | |
149 | 149 | $this->info(sprintf('sms default connection switch to [%s] successfully.', $connection)); |
150 | 150 | } |