Passed
Pull Request — master (#7448)
by Ilya
14:31
created
lib/Doctrine/ORM/Repository/DefaultRepositoryFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
      */
27 27
     public function getRepository(EntityManagerInterface $entityManager, $entityName)
28 28
     {
29
-        $repositoryHash = $entityManager->getClassMetadata($entityName)->getClassName() . spl_object_id($entityManager);
29
+        $repositoryHash = $entityManager->getClassMetadata($entityName)->getClassName().spl_object_id($entityManager);
30 30
 
31 31
         return $this->repositoryList[$repositoryHash]
32 32
                 ?? $this->repositoryList[$repositoryHash] = $this->createRepository($entityManager, $entityName);
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Repository/Exception/InvalidMagicMethodCall.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,13 +14,13 @@
 block discarded – undo
14 14
         string $method
15 15
     ) : self {
16 16
         return new self(
17
-            "Entity '" . $entityName . "' has no field '" . $fieldName . "'. " .
18
-            "You can therefore not call '" . $method . "' on the entities' repository."
17
+            "Entity '".$entityName."' has no field '".$fieldName."'. ".
18
+            "You can therefore not call '".$method."' on the entities' repository."
19 19
         );
20 20
     }
21 21
 
22 22
     public static function onMissingParameter(string $methodName) : self
23 23
     {
24
-        return new self("You need to pass a parameter to '" . $methodName . "'");
24
+        return new self("You need to pass a parameter to '".$methodName."'");
25 25
     }
26 26
 }
Please login to merge, or discard this patch.
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.