Passed
Push — master ( b9347d...4a07d3 )
by Zing
05:42 queued 10s
created
src/Gateways/MeilianGateway.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Channels/SmsChannel.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
52 52
             );
53 53
         }
54 54
 
55
-        if (! $message instanceof SmsMessage) {
55
+        if (!$message instanceof SmsMessage) {
56 56
             return;
57 57
         }
58 58
 
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
@@ -49,12 +49,12 @@  discard block
 block discarded – undo
49 49
      */
50 50
     public function connect(array $config)
51 51
     {
52
-        if (! isset($config['driver'])) {
52
+        if (!isset($config['driver'])) {
53 53
             throw new InvalidArgumentException('A driver must be specified.');
54 54
         }
55 55
 
56 56
         $driver = $config['driver'];
57
-        if (! class_exists($driver) || ! in_array(GatewayInterface::class, class_implements($driver), true)) {
57
+        if (!class_exists($driver) || !in_array(GatewayInterface::class, class_implements($driver), true)) {
58 58
             throw new InvalidArgumentException("Unsupported driver [{$config['driver']}].");
59 59
         }
60 60
 
@@ -84,8 +84,8 @@  discard block
 block discarded – undo
84 84
      */
85 85
     protected function formatMessage($message)
86 86
     {
87
-        if (! ($message instanceof MessageInterface)) {
88
-            if (! is_array($message)) {
87
+        if (!($message instanceof MessageInterface)) {
88
+            if (!is_array($message)) {
89 89
                 $message = [
90 90
                     'content' => $message,
91 91
                     'template' => $message,
Please login to merge, or discard this patch.
src/Commands/SmsSwitchConnectionCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     protected function getOptions()
37 37
     {
38 38
         return [
39
-            new InputOption('show', 's', InputOption::VALUE_NONE,'Display the sms default connection instead of modifying files'),
39
+            new InputOption('show', 's', InputOption::VALUE_NONE, 'Display the sms default connection instead of modifying files'),
40 40
             new InputOption('always-no', null, InputOption::VALUE_NONE, 'Skip generating sms default connection if it already exists'),
41 41
             new InputOption('force', 'f', InputOption::VALUE_NONE, 'Skip confirmation when overwriting an existing sms default connection'),
42 42
         ];
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         $connection = $this->argument('connection');
61 61
 
62 62
         if ($this->option('show')) {
63
-            $this->comment('SMS_CONNECTION='.$connection);
63
+            $this->comment('SMS_CONNECTION=' . $connection);
64 64
 
65 65
             return;
66 66
         }
Please login to merge, or discard this patch.
src/SmsServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
             }
53 53
         );
54 54
         $this->app->alias('sms', Sms::class);
55
-        $this->app->singleton('command.sms.gateway',SmsSwitchConnectionCommand::class);
55
+        $this->app->singleton('command.sms.gateway', SmsSwitchConnectionCommand::class);
56 56
         $this->commands([
57 57
             'command.sms.gateway'
58 58
         ]);
Please login to merge, or discard this patch.