@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | */ |
32 | 32 | public static function text($content) |
33 | 33 | { |
34 | - return (new static([],MessageContract::TEXT))->setContent($content); |
|
34 | + return (new static([], MessageContract::TEXT))->setContent($content); |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | /** |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | */ |
42 | 42 | public static function voice($content) |
43 | 43 | { |
44 | - return (new static([],MessageContract::VOICE))->setContent($content); |
|
44 | + return (new static([], MessageContract::VOICE))->setContent($content); |
|
45 | 45 | } |
46 | 46 | |
47 | 47 | /** |
@@ -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, |