@@ -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, |
@@ -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 |