Passed
Push — master ( 8f524d...baa0bd )
by William
09:23
created
src/Statements/SelectStatement.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -349,7 +349,7 @@  discard block
 block discarded – undo
349 349
         // This is a cheap fix for `SELECT` statements that contain `UNION`.
350 350
         // The `ORDER BY` and `LIMIT` clauses should be at the end of the
351 351
         // statement.
352
-        if (! empty($this->union)) {
352
+        if (!empty($this->union)) {
353 353
             $clauses = static::$clauses;
354 354
             unset($clauses['ORDER BY'], $clauses['LIMIT']);
355 355
             $clauses['ORDER BY'] = [
@@ -391,28 +391,28 @@  discard block
 block discarded – undo
391 391
         $expressions = $this->from;
392 392
 
393 393
         // Adding expressions from JOIN.
394
-        if (! empty($this->join)) {
394
+        if (!empty($this->join)) {
395 395
             foreach ($this->join as $join) {
396 396
                 $expressions[] = $join->expr;
397 397
             }
398 398
         }
399 399
 
400 400
         foreach ($expressions as $expr) {
401
-            if (! isset($expr->table) || ($expr->table === '')) {
401
+            if (!isset($expr->table) || ($expr->table === '')) {
402 402
                 continue;
403 403
             }
404 404
 
405 405
             $thisDb = isset($expr->database) && ($expr->database !== '') ?
406 406
                 $expr->database : $database;
407 407
 
408
-            if (! isset($retval[$thisDb])) {
408
+            if (!isset($retval[$thisDb])) {
409 409
                 $retval[$thisDb] = [
410 410
                     'alias' => null,
411 411
                     'tables' => [],
412 412
                 ];
413 413
             }
414 414
 
415
-            if (! isset($retval[$thisDb]['tables'][$expr->table])) {
415
+            if (!isset($retval[$thisDb]['tables'][$expr->table])) {
416 416
                 $retval[$thisDb]['tables'][$expr->table] = [
417 417
                     'alias' => isset($expr->alias) && ($expr->alias !== '') ?
418 418
                         $expr->alias : null,
@@ -420,7 +420,7 @@  discard block
 block discarded – undo
420 420
                 ];
421 421
             }
422 422
 
423
-            if (! isset($tables[$thisDb])) {
423
+            if (!isset($tables[$thisDb])) {
424 424
                 $tables[$thisDb] = [];
425 425
             }
426 426
 
@@ -428,7 +428,7 @@  discard block
 block discarded – undo
428 428
         }
429 429
 
430 430
         foreach ($this->expr as $expr) {
431
-            if (! isset($expr->column, $expr->alias) || ($expr->column === '') || ($expr->alias === '')) {
431
+            if (!isset($expr->column, $expr->alias) || ($expr->column === '') || ($expr->alias === '')) {
432 432
                 continue;
433 433
             }
434 434
 
Please login to merge, or discard this patch.