Failed Conditions
Pull Request — master (#7184)
by
unknown
07:12
created
lib/Doctrine/ORM/Query/Expr.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\ORM\Query;
6 6
 
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
      */
253 253
     public function countDistinct($x)
254 254
     {
255
-        return 'COUNT(DISTINCT ' . implode(', ', func_get_args()) . ')';
255
+        return 'COUNT(DISTINCT '.implode(', ', func_get_args()).')';
256 256
     }
257 257
 
258 258
     /**
@@ -428,13 +428,13 @@  discard block
 block discarded – undo
428 428
     {
429 429
         if (is_array($y)) {
430 430
             foreach ($y as &$literal) {
431
-                if (! ($literal instanceof Expr\Literal)) {
431
+                if ( ! ($literal instanceof Expr\Literal)) {
432 432
                     $literal = $this->quoteLiteral($literal);
433 433
                 }
434 434
             }
435 435
         }
436 436
 
437
-        return new Expr\Func($x . ' IN', (array) $y);
437
+        return new Expr\Func($x.' IN', (array) $y);
438 438
     }
439 439
 
440 440
     /**
@@ -449,13 +449,13 @@  discard block
 block discarded – undo
449 449
     {
450 450
         if (is_array($y)) {
451 451
             foreach ($y as &$literal) {
452
-                if (! ($literal instanceof Expr\Literal)) {
452
+                if ( ! ($literal instanceof Expr\Literal)) {
453 453
                     $literal = $this->quoteLiteral($literal);
454 454
                 }
455 455
             }
456 456
         }
457 457
 
458
-        return new Expr\Func($x . ' NOT IN', (array) $y);
458
+        return new Expr\Func($x.' NOT IN', (array) $y);
459 459
     }
460 460
 
461 461
     /**
@@ -467,7 +467,7 @@  discard block
 block discarded – undo
467 467
      */
468 468
     public function isNull($x)
469 469
     {
470
-        return $x . ' IS NULL';
470
+        return $x.' IS NULL';
471 471
     }
472 472
 
473 473
     /**
@@ -479,7 +479,7 @@  discard block
 block discarded – undo
479 479
      */
480 480
     public function isNotNull($x)
481 481
     {
482
-        return $x . ' IS NOT NULL';
482
+        return $x.' IS NOT NULL';
483 483
     }
484 484
 
485 485
     /**
@@ -603,7 +603,7 @@  discard block
 block discarded – undo
603 603
             return $literal ? 'true' : 'false';
604 604
         }
605 605
 
606
-        return "'" . str_replace("'", "''", $literal) . "'";
606
+        return "'".str_replace("'", "''", $literal)."'";
607 607
     }
608 608
 
609 609
     /**
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/Expr/Between.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\ORM\Query\Expr;
6 6
 
@@ -38,6 +38,6 @@  discard block
 block discarded – undo
38 38
 
39 39
     public function __toString() : string
40 40
     {
41
-        return $this->key . ' ' . $this->operator . ' ' . $this->min . ' AND ' . $this->max;
41
+        return $this->key.' '.$this->operator.' '.$this->min.' AND '.$this->max;
42 42
     }
43 43
 }
Please login to merge, or discard this patch.