Passed
Pull Request — master (#7885)
by Šimon
05:58
created
lib/Doctrine/ORM/Repository/Exception/InvalidFindByCall.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
         string $associationFieldName
14 14
     ) : self {
15 15
         return new self(
16
-            "You cannot search for the association field '" . $entityName . '#' . $associationFieldName . "', " .
16
+            "You cannot search for the association field '".$entityName.'#'.$associationFieldName."', ".
17 17
             'because it is the inverse side of an association. Find methods only work on owning side associations.'
18 18
         );
19 19
     }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/Expr/OrderBy.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     public function add($sort, $order = null)
46 46
     {
47 47
         $order         = ! $order ? 'ASC' : $order;
48
-        $this->parts[] = $sort . ' ' . $order;
48
+        $this->parts[] = $sort.' '.$order;
49 49
     }
50 50
 
51 51
     /**
@@ -69,6 +69,6 @@  discard block
 block discarded – undo
69 69
      */
70 70
     public function __toString()
71 71
     {
72
-        return $this->preSeparator . implode($this->separator, $this->parts) . $this->postSeparator;
72
+        return $this->preSeparator.implode($this->separator, $this->parts).$this->postSeparator;
73 73
     }
74 74
 }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/AST/ASTException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,6 +19,6 @@
 block discarded – undo
19 19
      */
20 20
     public static function noDispatchForNode($node)
21 21
     {
22
-        return new self('Double-dispatch for node ' . get_class($node) . ' is not supported.');
22
+        return new self('Double-dispatch for node '.get_class($node).' is not supported.');
23 23
     }
24 24
 }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/AST/Functions/IdentityFunction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
         $tableAlias       = $sqlWalker->getSQLTableAlias($tableName, $dqlAlias);
69 69
         $quotedColumnName = $platform->quoteIdentifier($joinColumn->getColumnName());
70 70
 
71
-        return $tableAlias . '.' . $quotedColumnName;
71
+        return $tableAlias.'.'.$quotedColumnName;
72 72
     }
73 73
 
74 74
     /**
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/AST/Functions/SizeFunction.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
             $targetTableAlias = $sqlWalker->getSQLTableAlias($targetClass->getTableName());
45 45
             $sourceTableAlias = $sqlWalker->getSQLTableAlias($class->getTableName(), $dqlAlias);
46 46
 
47
-            $sql .= $targetTableName . ' ' . $targetTableAlias . ' WHERE ';
47
+            $sql .= $targetTableName.' '.$targetTableAlias.' WHERE ';
48 48
 
49 49
             $owningAssociation = $targetClass->getProperty($association->getMappedBy());
50 50
             $first             = true;
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
             }
79 79
 
80 80
             // join to target table
81
-            $sql .= $joinTableName . ' ' . $joinTableAlias . ' WHERE ';
81
+            $sql .= $joinTableName.' '.$joinTableAlias.' WHERE ';
82 82
 
83 83
             $joinColumns = $association->isOwningSide()
84 84
                 ? $joinTable->getJoinColumns()
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
             }
105 105
         }
106 106
 
107
-        return '(' . $sql . ')';
107
+        return '('.$sql.')';
108 108
     }
109 109
 
110 110
     /**
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/AST/Functions/AbsFunction.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,9 +23,9 @@
 block discarded – undo
23 23
      */
24 24
     public function getSql(SqlWalker $sqlWalker)
25 25
     {
26
-        return 'ABS(' . $sqlWalker->walkSimpleArithmeticExpression(
26
+        return 'ABS('.$sqlWalker->walkSimpleArithmeticExpression(
27 27
             $this->simpleArithmeticExpression
28
-        ) . ')';
28
+        ).')';
29 29
     }
30 30
 
31 31
     /**
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/Expr.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -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
     /**
@@ -617,7 +617,7 @@  discard block
 block discarded – undo
617 617
      */
618 618
     public function between($val, $x, $y)
619 619
     {
620
-        return $val . ' BETWEEN ' . $x . ' AND ' . $y;
620
+        return $val.' BETWEEN '.$x.' AND '.$y;
621 621
     }
622 622
 
623 623
     /**
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/ResultSetMapping.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
         $found = false;
223 223
 
224 224
         foreach (array_merge($this->metaMappings, $this->fieldMappings) as $columnName => $columnFieldName) {
225
-            if (! ($columnFieldName === $fieldName && $this->columnOwnerMap[$columnName] === $alias)) {
225
+            if ( ! ($columnFieldName === $fieldName && $this->columnOwnerMap[$columnName] === $alias)) {
226 226
                 continue;
227 227
             }
228 228
 
@@ -331,7 +331,7 @@  discard block
 block discarded – undo
331 331
         // field name => class name of declaring class
332 332
         $this->declaringClasses[$columnName] = $declaringClass ?: $this->aliasMap[$alias];
333 333
 
334
-        if (! $this->isMixed && $this->scalarMappings) {
334
+        if ( ! $this->isMixed && $this->scalarMappings) {
335 335
             $this->isMixed = true;
336 336
         }
337 337
 
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
         $this->scalarMappings[$columnName] = $alias;
377 377
         $this->typeMappings[$columnName]   = $type;
378 378
 
379
-        if (! $this->isMixed && $this->fieldMappings) {
379
+        if ( ! $this->isMixed && $this->fieldMappings) {
380 380
             $this->isMixed = true;
381 381
         }
382 382
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/Printer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      */
46 46
     public function startProduction($name)
47 47
     {
48
-        $this->println('(' . $name);
48
+        $this->println('('.$name);
49 49
         $this->indent++;
50 50
     }
51 51
 
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      */
68 68
     public function println($str)
69 69
     {
70
-        if (! $this->silent) {
70
+        if ( ! $this->silent) {
71 71
             echo str_repeat('    ', $this->indent), $str, "\n";
72 72
         }
73 73
     }
Please login to merge, or discard this patch.