Failed Conditions
Push — master ( 82c91a...ddb3cd )
by Guilherme
15:32 queued 12:12
created
lib/Doctrine/ORM/ORMException.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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,16 +38,16 @@  discard block
 block discarded – undo
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
      * @param string $field
45 45
      *
46 46
      * @return ORMException
47
-     */
47
+     * /
48 48
     public static function unrecognizedField($field)
49 49
     {
50
-        return new self('Unrecognized field: ' . $field);
50
+        return new self('Unrecognized field: '.$field);
51 51
     }
52 52
 
53 53
     /**
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      */
72 72
     public static function invalidOrientation($className, $field)
73 73
     {
74
-        return new self('Invalid order by orientation specified for ' . $className . '#' . $field);
74
+        return new self('Invalid order by orientation specified for '.$className.'#'.$field);
75 75
     }
76 76
 
77 77
     /**
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
      */
108 108
     public static function findByRequiresParameter($methodName)
109 109
     {
110
-        return new self("You need to pass a parameter to '" . $methodName . "'");
110
+        return new self("You need to pass a parameter to '".$methodName."'");
111 111
     }
112 112
 
113 113
     /**
@@ -120,8 +120,8 @@  discard block
 block discarded – undo
120 120
     public static function invalidMagicCall($entityName, $fieldName, $method)
121 121
     {
122 122
         return new self(
123
-            "Entity '" . $entityName . "' has no field '" . $fieldName . "'. " .
124
-            "You can therefore not call '" . $method . "' on the entities' repository"
123
+            "Entity '".$entityName."' has no field '".$fieldName."'. ".
124
+            "You can therefore not call '".$method."' on the entities' repository"
125 125
         );
126 126
     }
127 127
 
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
     public static function invalidFindByInverseAssociation($entityName, $associationFieldName)
135 135
     {
136 136
         return new self(
137
-            "You cannot search for the association field '" . $entityName . '#' . $associationFieldName . "', " .
137
+            "You cannot search for the association field '".$entityName.'#'.$associationFieldName."', ".
138 138
             'because it is the inverse side of an association. Find methods only work on owning side associations.'
139 139
         );
140 140
     }
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
      */
177 177
     public static function queryCacheUsesNonPersistentCache(CacheDriver $cache)
178 178
     {
179
-        return new self('Query Cache uses a non-persistent cache driver, ' . get_class($cache) . '.');
179
+        return new self('Query Cache uses a non-persistent cache driver, '.get_class($cache).'.');
180 180
     }
181 181
 
182 182
     /**
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
      */
185 185
     public static function metadataCacheUsesNonPersistentCache(CacheDriver $cache)
186 186
     {
187
-        return new self('Metadata Cache uses a non-persistent cache driver, ' . get_class($cache) . '.');
187
+        return new self('Metadata Cache uses a non-persistent cache driver, '.get_class($cache).'.');
188 188
     }
189 189
 
190 190
     /**
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
      */
203 203
     public static function invalidEntityRepository($className)
204 204
     {
205
-        return new self("Invalid repository class '" . $className . "'. It must be a Doctrine\Common\Persistence\ObjectRepository.");
205
+        return new self("Invalid repository class '".$className."'. It must be a Doctrine\Common\Persistence\ObjectRepository.");
206 206
     }
207 207
 
208 208
     /**
@@ -225,8 +225,8 @@  discard block
 block discarded – undo
225 225
     public static function unrecognizedIdentifierFields($className, $fieldNames)
226 226
     {
227 227
         return new self(
228
-            "Unrecognized identifier fields: '" . implode("', '", $fieldNames) . "' " .
229
-            "are not present on class '" . $className . "'."
228
+            "Unrecognized identifier fields: '".implode("', '", $fieldNames)."' ".
229
+            "are not present on class '".$className."'."
230 230
         );
231 231
     }
232 232
 
Please login to merge, or discard this patch.