@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\ORM; |
6 | 6 | |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | */ |
32 | 32 | public static function namedQueryNotFound($queryName) |
33 | 33 | { |
34 | - return new self('Could not find a named query by the name "' . $queryName . '"'); |
|
34 | + return new self('Could not find a named query by the name "'.$queryName.'"'); |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | /** |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | */ |
42 | 42 | public static function namedNativeQueryNotFound($nativeQueryName) |
43 | 43 | { |
44 | - return new self('Could not find a named native query by the name "' . $nativeQueryName . '"'); |
|
44 | + return new self('Could not find a named native query by the name "'.$nativeQueryName.'"'); |
|
45 | 45 | } |
46 | 46 | |
47 | 47 | /** |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | */ |
77 | 77 | public static function invalidOrientation($className, $field) |
78 | 78 | { |
79 | - return new self("Invalid order by orientation specified for " . $className . "#" . $field); |
|
79 | + return new self("Invalid order by orientation specified for ".$className."#".$field); |
|
80 | 80 | } |
81 | 81 | |
82 | 82 | /** |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | */ |
184 | 184 | public static function queryCacheUsesNonPersistentCache(CacheDriver $cache) |
185 | 185 | { |
186 | - return new self('Query Cache uses a non-persistent cache driver, ' . get_class($cache) . '.'); |
|
186 | + return new self('Query Cache uses a non-persistent cache driver, '.get_class($cache).'.'); |
|
187 | 187 | } |
188 | 188 | |
189 | 189 | /** |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | */ |
194 | 194 | public static function metadataCacheUsesNonPersistentCache(CacheDriver $cache) |
195 | 195 | { |
196 | - return new self('Metadata Cache uses a non-persistent cache driver, ' . get_class($cache) . '.'); |
|
196 | + return new self('Metadata Cache uses a non-persistent cache driver, '.get_class($cache).'.'); |
|
197 | 197 | } |
198 | 198 | |
199 | 199 | /** |
@@ -234,7 +234,7 @@ discard block |
||
234 | 234 | */ |
235 | 235 | public static function missingIdentifierField($className, $fieldName) |
236 | 236 | { |
237 | - return new self("The identifier $fieldName is missing for a query of " . $className); |
|
237 | + return new self("The identifier $fieldName is missing for a query of ".$className); |
|
238 | 238 | } |
239 | 239 | |
240 | 240 | /** |
@@ -246,8 +246,8 @@ discard block |
||
246 | 246 | public static function unrecognizedIdentifierFields($className, $fieldNames) |
247 | 247 | { |
248 | 248 | return new self( |
249 | - "Unrecognized identifier fields: '" . implode("', '", $fieldNames) . "' " . |
|
250 | - "are not present on class '" . $className . "'." |
|
249 | + "Unrecognized identifier fields: '".implode("', '", $fieldNames)."' ". |
|
250 | + "are not present on class '".$className."'." |
|
251 | 251 | ); |
252 | 252 | } |
253 | 253 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\ORM; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\ORM\Repository; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\ORM; |
6 | 6 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\ORM; |
6 | 6 | |
@@ -293,8 +293,8 @@ discard block |
||
293 | 293 | */ |
294 | 294 | private function resolveMagicCall($method, $by, array $arguments) |
295 | 295 | { |
296 | - if (! $arguments) { |
|
297 | - throw ORMException::findByRequiresParameter($method . $by); |
|
296 | + if ( ! $arguments) { |
|
297 | + throw ORMException::findByRequiresParameter($method.$by); |
|
298 | 298 | } |
299 | 299 | |
300 | 300 | $fieldName = lcfirst(Inflector::classify($by)); |
@@ -303,7 +303,7 @@ discard block |
||
303 | 303 | throw InvalidMagicMethodCall::becauseFieldNotFoundIn( |
304 | 304 | $this->entityName, |
305 | 305 | $fieldName, |
306 | - $method . $by |
|
306 | + $method.$by |
|
307 | 307 | ); |
308 | 308 | } |
309 | 309 |