Passed
Pull Request — master (#6)
by Zing
03:55
created
src/Channels/SmsChannel.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Connectors/Connector.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,11 +34,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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,
Please login to merge, or discard this patch.
src/Gateways/MeilianGateway.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.