Passed
Push — dependabot/github_actions/code... ( 53093b...339e79 )
by
unknown
09:36 queued 04:41
created
src/Commands/SmsSwitchConnectionCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     public function handle(): void
72 72
     {
73 73
         $connection = $this->argument('connection');
74
-        if (! is_string($connection)) {
74
+        if (!is_string($connection)) {
75 75
             return;
76 76
         }
77 77
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
         }
83 83
 
84 84
         $path = $this->envPath();
85
-        if (! file_exists($path)) {
85
+        if (!file_exists($path)) {
86 86
             $this->displayConnection($connection);
87 87
 
88 88
             return;
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
         /** @var string $contents */
105 105
         $contents = file_get_contents($path);
106 106
 
107
-        if (! Str::contains($contents, 'SMS_CONNECTION')) {
107
+        if (!Str::contains($contents, 'SMS_CONNECTION')) {
108 108
             // create new entry
109 109
             file_put_contents($path, PHP_EOL . sprintf('SMS_CONNECTION=%s', $connection) . PHP_EOL, FILE_APPEND);
110 110
 
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
             return false;
118 118
         }
119 119
 
120
-        if (! $this->isConfirmed()) {
120
+        if (!$this->isConfirmed()) {
121 121
             $this->comment('Phew... No changes were made to your sms default connection.');
122 122
 
123 123
             return false;
Please login to merge, or discard this patch.