Passed
Pull Request — master (#7791)
by
unknown
10:37
created
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.
lib/Doctrine/ORM/Query/QueryException.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      */
33 33
     public static function syntaxError($message, $previous = null)
34 34
     {
35
-        return new self('[Syntax Error] ' . $message, 0, $previous);
35
+        return new self('[Syntax Error] '.$message, 0, $previous);
36 36
     }
37 37
 
38 38
     /**
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      */
44 44
     public static function semanticalError($message, $previous = null)
45 45
     {
46
-        return new self('[Semantical Error] ' . $message, 0, $previous);
46
+        return new self('[Semantical Error] '.$message, 0, $previous);
47 47
     }
48 48
 
49 49
     /**
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      */
63 63
     public static function invalidParameterType($expected, $received)
64 64
     {
65
-        return new self('Invalid parameter type, ' . $received . ' given, but ' . $expected . ' expected.');
65
+        return new self('Invalid parameter type, '.$received.' given, but '.$expected.' expected.');
66 66
     }
67 67
 
68 68
     /**
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      */
73 73
     public static function invalidParameterPosition($pos)
74 74
     {
75
-        return new self('Invalid parameter position: ' . $pos);
75
+        return new self('Invalid parameter position: '.$pos);
76 76
     }
77 77
 
78 78
     /**
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      */
84 84
     public static function tooManyParameters($expected, $received)
85 85
     {
86
-        return new self('Too many parameters: the query defines ' . $expected . ' parameters and you bound ' . $received);
86
+        return new self('Too many parameters: the query defines '.$expected.' parameters and you bound '.$received);
87 87
     }
88 88
 
89 89
     /**
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      */
95 95
     public static function tooFewParameters($expected, $received)
96 96
     {
97
-        return new self('Too few parameters: the query defines ' . $expected . ' parameters but you only bound ' . $received);
97
+        return new self('Too few parameters: the query defines '.$expected.' parameters but you only bound '.$received);
98 98
     }
99 99
 
100 100
     /**
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
      */
105 105
     public static function invalidParameterFormat($value)
106 106
     {
107
-        return new self('Invalid parameter format, ' . $value . ' given, but :<name> or ?<num> expected.');
107
+        return new self('Invalid parameter format, '.$value.' given, but :<name> or ?<num> expected.');
108 108
     }
109 109
 
110 110
     /**
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
      */
115 115
     public static function unknownParameter($key)
116 116
     {
117
-        return new self('Invalid parameter: token ' . $key . ' is not defined in the query.');
117
+        return new self('Invalid parameter: token '.$key.' is not defined in the query.');
118 118
     }
119 119
 
120 120
     /**
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
     public static function invalidPathExpression($pathExpr)
134 134
     {
135 135
         return new self(
136
-            "Invalid PathExpression '" . $pathExpr->identificationVariable . '.' . $pathExpr->field . "'."
136
+            "Invalid PathExpression '".$pathExpr->identificationVariable.'.'.$pathExpr->field."'."
137 137
         );
138 138
     }
139 139
 
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
      */
145 145
     public static function invalidLiteral($literal)
146 146
     {
147
-        return new self("Invalid literal '" . $literal . "'");
147
+        return new self("Invalid literal '".$literal."'");
148 148
     }
149 149
 
150 150
     /**
@@ -155,8 +155,8 @@  discard block
 block discarded – undo
155 155
     public static function iterateWithFetchJoinCollectionNotAllowed($assoc)
156 156
     {
157 157
         return new self(
158
-            'Invalid query operation: Not allowed to iterate over fetch join collections ' .
159
-            'in class ' . $assoc['sourceEntity'] . ' association ' . $assoc['fieldName']
158
+            'Invalid query operation: Not allowed to iterate over fetch join collections '.
159
+            'in class '.$assoc['sourceEntity'].' association '.$assoc['fieldName']
160 160
         );
161 161
     }
162 162
 
@@ -166,8 +166,8 @@  discard block
 block discarded – undo
166 166
     public static function partialObjectsAreDangerous()
167 167
     {
168 168
         return new self(
169
-            'Loading partial objects is dangerous. Fetch full objects or consider ' .
170
-            'using a different fetch mode. If you really want partial objects, ' .
169
+            'Loading partial objects is dangerous. Fetch full objects or consider '.
170
+            'using a different fetch mode. If you really want partial objects, '.
171 171
             'set the doctrine.forcePartialLoad query hint to TRUE.'
172 172
         );
173 173
     }
@@ -180,8 +180,8 @@  discard block
 block discarded – undo
180 180
     public static function overwritingJoinConditionsNotYetSupported($assoc)
181 181
     {
182 182
         return new self(
183
-            'Unsupported query operation: It is not yet possible to overwrite the join ' .
184
-            'conditions in class ' . $assoc['sourceEntityName'] . ' association ' . $assoc['fieldName'] . '. ' .
183
+            'Unsupported query operation: It is not yet possible to overwrite the join '.
184
+            'conditions in class '.$assoc['sourceEntityName'].' association '.$assoc['fieldName'].'. '.
185 185
             'Use WITH to append additional join conditions to the association.'
186 186
         );
187 187
     }
@@ -192,8 +192,8 @@  discard block
 block discarded – undo
192 192
     public static function associationPathInverseSideNotSupported(PathExpression $pathExpr)
193 193
     {
194 194
         return new self(
195
-            'A single-valued association path expression to an inverse side is not supported in DQL queries. ' .
196
-            'Instead of "' . $pathExpr->identificationVariable . '.' . $pathExpr->field . '" use an explicit join.'
195
+            'A single-valued association path expression to an inverse side is not supported in DQL queries. '.
196
+            'Instead of "'.$pathExpr->identificationVariable.'.'.$pathExpr->field.'" use an explicit join.'
197 197
         );
198 198
     }
199 199
 
@@ -217,8 +217,8 @@  discard block
 block discarded – undo
217 217
     public static function associationPathCompositeKeyNotSupported()
218 218
     {
219 219
         return new self(
220
-            'A single-valued association path expression to an entity with a composite primary ' .
221
-            'key is not supported. Explicitly name the components of the composite primary key ' .
220
+            'A single-valued association path expression to an entity with a composite primary '.
221
+            'key is not supported. Explicitly name the components of the composite primary key '.
222 222
             'in the query.'
223 223
         );
224 224
     }
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
      */
232 232
     public static function instanceOfUnrelatedClass($className, $rootClass)
233 233
     {
234
-        return new self("Cannot check if a child of '" . $rootClass . "' is instanceof '" . $className . "', " .
234
+        return new self("Cannot check if a child of '".$rootClass."' is instanceof '".$className."', ".
235 235
             'inheritance hierarchy does not exists between these two classes.');
236 236
     }
237 237
 
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
     public static function invalidQueryComponent($dqlAlias)
244 244
     {
245 245
         return new self(
246
-            "Invalid query component given for DQL alias '" . $dqlAlias . "', " .
246
+            "Invalid query component given for DQL alias '".$dqlAlias."', ".
247 247
             "requires 'metadata', 'parent', 'relation', 'map', 'nestingLevel' and 'token' keys."
248 248
         );
249 249
     }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/ToolsException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,6 +14,6 @@
 block discarded – undo
14 14
 {
15 15
     public static function schemaToolFailure(string $sql, Throwable $e) : self
16 16
     {
17
-        return new self("Schema-Tool failed with Error '" . $e->getMessage() . "' while executing DDL: " . $sql, 0, $e);
17
+        return new self("Schema-Tool failed with Error '".$e->getMessage()."' while executing DDL: ".$sql, 0, $e);
18 18
     }
19 19
 }
Please login to merge, or discard this patch.