Passed
Pull Request — master (#482)
by
unknown
02:46
created
src/Components/CreateDefinition.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
                     $state = 4;
244 244
                 } elseif ($token->type === Token::TYPE_SYMBOL || $token->type === Token::TYPE_NONE) {
245 245
                     $expr->name = $token->value;
246
-                    if (! $expr->isConstraint) {
246
+                    if (!$expr->isConstraint) {
247 247
                         $state = 2;
248 248
                     }
249 249
                 } elseif ($token->type === Token::TYPE_KEYWORD) {
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
 
285 285
                 $state = 5;
286 286
             } elseif ($state === 5) {
287
-                if (! empty($expr->type) || ! empty($expr->key)) {
287
+                if (!empty($expr->type) || !empty($expr->key)) {
288 288
                     $ret[] = $expr;
289 289
                 }
290 290
 
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
         }
305 305
 
306 306
         // Last iteration was not saved.
307
-        if (! empty($expr->type) || ! empty($expr->key)) {
307
+        if (!empty($expr->type) || !empty($expr->key)) {
308 308
             $ret[] = $expr;
309 309
         }
310 310
 
@@ -336,16 +336,16 @@  discard block
 block discarded – undo
336 336
             $tmp .= Context::escape($component->name) . ' ';
337 337
         }
338 338
 
339
-        if (! empty($component->type)) {
339
+        if (!empty($component->type)) {
340 340
             $component->type->lowercase = true;
341 341
             $tmp .= DataType::build($component->type) . ' ';
342 342
         }
343 343
 
344
-        if (! empty($component->key)) {
344
+        if (!empty($component->key)) {
345 345
             $tmp .= $component->key . ' ';
346 346
         }
347 347
 
348
-        if (! empty($component->references)) {
348
+        if (!empty($component->references)) {
349 349
             $tmp .= 'REFERENCES ' . $component->references . ' ';
350 350
         }
351 351
 
Please login to merge, or discard this patch.
src/Components/IntoKeyword.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -264,7 +264,7 @@
 block discarded – undo
264 264
     public static function build($component): string
265 265
     {
266 266
         if ($component->dest instanceof Expression) {
267
-            $columns = ! empty($component->columns) ? '(`' . implode('`, `', $component->columns) . '`)' : '';
267
+            $columns = !empty($component->columns) ? '(`' . implode('`, `', $component->columns) . '`)' : '';
268 268
 
269 269
             return $component->dest . $columns;
270 270
         }
Please login to merge, or discard this patch.
src/Components/WithKeyword.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,11 +50,11 @@
 block discarded – undo
50 50
      */
51 51
     public static function build($component): string
52 52
     {
53
-        if (! $component instanceof WithKeyword) {
53
+        if (!$component instanceof WithKeyword) {
54 54
             throw new RuntimeException('Can not build a component that is not a WithKeyword');
55 55
         }
56 56
 
57
-        if (! isset($component->statement)) {
57
+        if (!isset($component->statement)) {
58 58
             throw new RuntimeException('No statement inside WITH');
59 59
         }
60 60
 
Please login to merge, or discard this patch.
src/Components/Key.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -179,9 +179,9 @@  discard block
 block discarded – undo
179 179
             } elseif ($state === 1) {
180 180
                 if (($token->type === Token::TYPE_OPERATOR) && ($token->value === '(')) {
181 181
                     $positionBeforeSearch = $list->idx;
182
-                    $list->idx++;// Ignore the current token "(" or the search condition will always be true
182
+                    $list->idx++; // Ignore the current token "(" or the search condition will always be true
183 183
                     $nextToken = $list->getNext();
184
-                    $list->idx = $positionBeforeSearch;// Restore the position
184
+                    $list->idx = $positionBeforeSearch; // Restore the position
185 185
 
186 186
                     if ($nextToken !== null && $nextToken->value === '(') {
187 187
                         // Switch to expression mode
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
                 if ($token->type === Token::TYPE_OPERATOR) {
231 231
                     // This got back to here and we reached the end of the expression
232 232
                     if ($token->value === ')') {
233
-                        $state = 4;// go back to state 4 to fetch options
233
+                        $state = 4; // go back to state 4 to fetch options
234 234
                         continue;
235 235
                     }
236 236
 
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
     public static function build($component): string
270 270
     {
271 271
         $ret = $component->type . ' ';
272
-        if (! empty($component->name)) {
272
+        if (!empty($component->name)) {
273 273
             $ret .= Context::escape($component->name) . ' ';
274 274
         }
275 275
 
Please login to merge, or discard this patch.