Passed
Push — master ( 9e99de...aeb52d )
by William
03:32 queued 13s
created
src/Utils/CLI.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     {
40 40
         foreach ($longopts as $value) {
41 41
             $value = rtrim($value, ':');
42
-            if (! isset($params[$value])) {
42
+            if (!isset($params[$value])) {
43 43
                 continue;
44 44
             }
45 45
 
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      *
63 63
      * @return string[]|false[]|false
64 64
      */
65
-    public function getopt($opt, $long): array|false
65
+    public function getopt($opt, $long): array | false
66 66
     {
67 67
         return getopt($opt, $long);
68 68
     }
@@ -84,11 +84,11 @@  discard block
 block discarded – undo
84 84
         }
85 85
 
86 86
         $this->mergeLongOpts($params, $longopts);
87
-        if (! isset($params['f'])) {
87
+        if (!isset($params['f'])) {
88 88
             $params['f'] = 'cli';
89 89
         }
90 90
 
91
-        if (! in_array($params['f'], ['html', 'cli', 'text'])) {
91
+        if (!in_array($params['f'], ['html', 'cli', 'text'])) {
92 92
             echo "ERROR: Invalid value for format!\n";
93 93
 
94 94
             return false;
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
             return 0;
114 114
         }
115 115
 
116
-        if (! isset($params['q'])) {
116
+        if (!isset($params['q'])) {
117 117
             $stdIn = $this->readStdin();
118 118
 
119 119
             if ($stdIn) {
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
             Context::load($params['c']);
188 188
         }
189 189
 
190
-        if (! isset($params['q'])) {
190
+        if (!isset($params['q'])) {
191 191
             $stdIn = $this->readStdin();
192 192
 
193 193
             if ($stdIn) {
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
             return 0;
262 262
         }
263 263
 
264
-        if (! isset($params['q'])) {
264
+        if (!isset($params['q'])) {
265 265
             $stdIn = $this->readStdin();
266 266
 
267 267
             if ($stdIn) {
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
         return 1;
298 298
     }
299 299
 
300
-    public function readStdin(): string|false|null
300
+    public function readStdin(): string | false | null
301 301
     {
302 302
         $read = [STDIN];
303 303
         $write = [];
Please login to merge, or discard this patch.
src/Statements/WithStatement.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
                     break;
134 134
                 }
135 135
             } elseif ($state === 2) {
136
-                if (! ($token->type === Token::TYPE_KEYWORD && $token->keyword === 'AS')) {
136
+                if (!($token->type === Token::TYPE_KEYWORD && $token->keyword === 'AS')) {
137 137
                     $parser->error('AS keyword was expected.', $token);
138 138
                     break;
139 139
                 }
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
                 $list->idx++; // Ignore the current token
146 146
                 $nextKeyword = $list->getNext();
147 147
 
148
-                if (! ($token->value === '(' && ($nextKeyword && $nextKeyword->value === 'SELECT'))) {
148
+                if (!($token->value === '(' && ($nextKeyword && $nextKeyword->value === 'SELECT'))) {
149 149
                     $parser->error('Subquery of the CTE was expected.', $token);
150 150
                     $list->idx = $idxBeforeGetNext;
151 151
                     break;
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
     /**
296 296
      * Get tokens within the WITH expression to use them in another parser
297 297
      */
298
-    private function getSubTokenList(TokensList $list): ParserException|TokensList
298
+    private function getSubTokenList(TokensList $list): ParserException | TokensList
299 299
     {
300 300
         $idx = $list->idx;
301 301
         $token = $list->tokens[$list->idx];
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
             }
312 312
 
313 313
             ++$list->idx;
314
-            if (! isset($list->tokens[$list->idx])) {
314
+            if (!isset($list->tokens[$list->idx])) {
315 315
                 break;
316 316
             }
317 317
 
Please login to merge, or discard this patch.