@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | { |
38 | 38 | $message = $this->getData($notifiable, $notification); |
39 | 39 | $receiver = $this->resolveReceiver($notifiable, $notification); |
40 | - if (! $receiver) { |
|
40 | + if (!$receiver) { |
|
41 | 41 | return; |
42 | 42 | } |
43 | 43 | if (is_string($message)) { |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | 'template' => $message, |
47 | 47 | ]); |
48 | 48 | } |
49 | - if (! $message instanceof Message) { |
|
49 | + if (!$message instanceof Message) { |
|
50 | 50 | return; |
51 | 51 | } |
52 | 52 |
@@ -34,11 +34,11 @@ discard block |
||
34 | 34 | |
35 | 35 | public function connect(array $config) |
36 | 36 | { |
37 | - if (! isset($config['driver'])) { |
|
37 | + if (!isset($config['driver'])) { |
|
38 | 38 | throw new InvalidArgumentException('A driver must be specified.'); |
39 | 39 | } |
40 | 40 | $driver = $config['driver']; |
41 | - if (! class_exists($driver) || ! in_array(GatewayInterface::class, class_implements($driver), true)) { |
|
41 | + if (!class_exists($driver) || !in_array(GatewayInterface::class, class_implements($driver), true)) { |
|
42 | 42 | throw new InvalidArgumentException("Unsupported driver [{$config['driver']}]."); |
43 | 43 | } |
44 | 44 | |
@@ -68,8 +68,8 @@ discard block |
||
68 | 68 | */ |
69 | 69 | protected function formatMessage($message) |
70 | 70 | { |
71 | - if (! ($message instanceof MessageInterface)) { |
|
72 | - if (! is_array($message)) { |
|
71 | + if (!($message instanceof MessageInterface)) { |
|
72 | + if (!is_array($message)) { |
|
73 | 73 | $message = [ |
74 | 74 | 'content' => $message, |
75 | 75 | 'template' => $message, |
@@ -36,7 +36,7 @@ |
||
36 | 36 | 'content' => strpos($content, '【') === 0 ? $content : $signature . $content, |
37 | 37 | ] |
38 | 38 | ); |
39 | - if (! is_string($result)) { |
|
39 | + if (!is_string($result)) { |
|
40 | 40 | throw new CouldNotSendNotification('meilian response does only seem to accept string.'); |
41 | 41 | } |
42 | 42 | if (strpos($result, 'error') !== false) { |