Completed
Push — 2.8.x ( a416a9...989147 )
by Luís
39s queued 22s
created
lib/Doctrine/ORM/EntityRepository.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
      */
137 137
     public function clear()
138 138
     {
139
-        @trigger_error('Method ' . __METHOD__ . '() is deprecated and will be removed in Doctrine ORM 3.0.', E_USER_DEPRECATED);
139
+        @trigger_error('Method '.__METHOD__.'() is deprecated and will be removed in Doctrine ORM 3.0.', E_USER_DEPRECATED);
140 140
 
141 141
         $this->_em->clear($this->_class->rootEntityName);
142 142
     }
@@ -304,14 +304,14 @@  discard block
 block discarded – undo
304 304
      */
305 305
     private function resolveMagicCall($method, $by, array $arguments)
306 306
     {
307
-        if (! $arguments) {
308
-            throw ORMException::findByRequiresParameter($method . $by);
307
+        if ( ! $arguments) {
308
+            throw ORMException::findByRequiresParameter($method.$by);
309 309
         }
310 310
 
311 311
         $fieldName = lcfirst(Inflector::classify($by));
312 312
 
313
-        if (! ($this->_class->hasField($fieldName) || $this->_class->hasAssociation($fieldName))) {
314
-            throw ORMException::invalidMagicCall($this->_entityName, $fieldName, $method . $by);
313
+        if ( ! ($this->_class->hasField($fieldName) || $this->_class->hasAssociation($fieldName))) {
314
+            throw ORMException::invalidMagicCall($this->_entityName, $fieldName, $method.$by);
315 315
         }
316 316
 
317 317
         return $this->$method([$fieldName => $arguments[0]], ...array_slice($arguments, 1));
Please login to merge, or discard this patch.