@@ -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 | |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | */ |
18 | 18 | public static function missingMappingDriverImpl() |
19 | 19 | { |
20 | - return new self("It's a requirement to specify a Metadata Driver and pass it " . |
|
20 | + return new self("It's a requirement to specify a Metadata Driver and pass it ". |
|
21 | 21 | 'to Doctrine\\ORM\\Configuration::setMetadataDriverImpl().'); |
22 | 22 | } |
23 | 23 | |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | */ |
29 | 29 | public static function namedQueryNotFound($queryName) |
30 | 30 | { |
31 | - return new self('Could not find a named query by the name "' . $queryName . '"'); |
|
31 | + return new self('Could not find a named query by the name "'.$queryName.'"'); |
|
32 | 32 | } |
33 | 33 | |
34 | 34 | /** |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | */ |
39 | 39 | public static function namedNativeQueryNotFound($nativeQueryName) |
40 | 40 | { |
41 | - return new self('Could not find a named native query by the name "' . $nativeQueryName . '"'); |
|
41 | + return new self('Could not find a named native query by the name "'.$nativeQueryName.'"'); |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | /** |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | */ |
49 | 49 | public static function unrecognizedField($field) |
50 | 50 | { |
51 | - return new self('Unrecognized field: ' . $field); |
|
51 | + return new self('Unrecognized field: '.$field); |
|
52 | 52 | } |
53 | 53 | |
54 | 54 | /** |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | */ |
73 | 73 | public static function invalidOrientation($className, $field) |
74 | 74 | { |
75 | - return new self('Invalid order by orientation specified for ' . $className . '#' . $field); |
|
75 | + return new self('Invalid order by orientation specified for '.$className.'#'.$field); |
|
76 | 76 | } |
77 | 77 | |
78 | 78 | /** |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | */ |
109 | 109 | public static function findByRequiresParameter($methodName) |
110 | 110 | { |
111 | - return new self("You need to pass a parameter to '" . $methodName . "'"); |
|
111 | + return new self("You need to pass a parameter to '".$methodName."'"); |
|
112 | 112 | } |
113 | 113 | |
114 | 114 | /** |
@@ -121,8 +121,8 @@ discard block |
||
121 | 121 | public static function invalidMagicCall($entityName, $fieldName, $method) |
122 | 122 | { |
123 | 123 | return new self( |
124 | - "Entity '" . $entityName . "' has no field '" . $fieldName . "'. " . |
|
125 | - "You can therefore not call '" . $method . "' on the entities' repository" |
|
124 | + "Entity '".$entityName."' has no field '".$fieldName."'. ". |
|
125 | + "You can therefore not call '".$method."' on the entities' repository" |
|
126 | 126 | ); |
127 | 127 | } |
128 | 128 | |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | public static function invalidFindByInverseAssociation($entityName, $associationFieldName) |
136 | 136 | { |
137 | 137 | return new self( |
138 | - "You cannot search for the association field '" . $entityName . '#' . $associationFieldName . "', " . |
|
138 | + "You cannot search for the association field '".$entityName.'#'.$associationFieldName."', ". |
|
139 | 139 | 'because it is the inverse side of an association. Find methods only work on owning side associations.' |
140 | 140 | ); |
141 | 141 | } |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | */ |
178 | 178 | public static function queryCacheUsesNonPersistentCache(CacheDriver $cache) |
179 | 179 | { |
180 | - return new self('Query Cache uses a non-persistent cache driver, ' . get_class($cache) . '.'); |
|
180 | + return new self('Query Cache uses a non-persistent cache driver, '.get_class($cache).'.'); |
|
181 | 181 | } |
182 | 182 | |
183 | 183 | /** |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | */ |
186 | 186 | public static function metadataCacheUsesNonPersistentCache(CacheDriver $cache) |
187 | 187 | { |
188 | - return new self('Metadata Cache uses a non-persistent cache driver, ' . get_class($cache) . '.'); |
|
188 | + return new self('Metadata Cache uses a non-persistent cache driver, '.get_class($cache).'.'); |
|
189 | 189 | } |
190 | 190 | |
191 | 191 | /** |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | */ |
204 | 204 | public static function invalidEntityRepository($className) |
205 | 205 | { |
206 | - return new self("Invalid repository class '" . $className . "'. It must be a Doctrine\Common\Persistence\ObjectRepository."); |
|
206 | + return new self("Invalid repository class '".$className."'. It must be a Doctrine\Common\Persistence\ObjectRepository."); |
|
207 | 207 | } |
208 | 208 | |
209 | 209 | /** |
@@ -226,8 +226,8 @@ discard block |
||
226 | 226 | public static function unrecognizedIdentifierFields($className, $fieldNames) |
227 | 227 | { |
228 | 228 | return new self( |
229 | - "Unrecognized identifier fields: '" . implode("', '", $fieldNames) . "' " . |
|
230 | - "are not present on class '" . $className . "'." |
|
229 | + "Unrecognized identifier fields: '".implode("', '", $fieldNames)."' ". |
|
230 | + "are not present on class '".$className."'." |
|
231 | 231 | ); |
232 | 232 | } |
233 | 233 |