Completed
Push — 5.1 ( a89502...c13850 )
by Rémi
02:48
created
src/System/Manager.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
         // We first check if the entity is traversable and we'll resolve
166 166
         // the entity based on the first item of the object.   
167 167
         if ($this->isTraversable($entity)) {
168
-            if (! count($entity)) {
168
+            if (!count($entity)) {
169 169
                 throw new \InvalidArgumentException('Length of Entity collection must be greater than 0');
170 170
             }
171 171
 
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
         }
297 297
 
298 298
         if (!$entityMap instanceof EntityMap) {
299
-            throw new MappingException(get_class($entityMap) . ' must be an instance of EntityMap.');
299
+            throw new MappingException(get_class($entityMap).' must be an instance of EntityMap.');
300 300
         }
301 301
 
302 302
         $entityMap->setClass($entity);
@@ -314,8 +314,8 @@  discard block
 block discarded – undo
314 314
      */
315 315
     protected function getEntityMapInstanceFor($entity)
316 316
     {
317
-        if (class_exists($entity . 'Map')) {
318
-            $map = $entity . 'Map';
317
+        if (class_exists($entity.'Map')) {
318
+            $map = $entity.'Map';
319 319
             $map = new $map;
320 320
         } else {
321 321
             if ($this->strictMode) {
@@ -434,7 +434,7 @@  discard block
 block discarded – undo
434 434
         }
435 435
 
436 436
         if (is_null($valueMap)) {
437
-            $valueMap = $valueObject . 'Map';
437
+            $valueMap = $valueObject.'Map';
438 438
         }
439 439
 
440 440
         if (!class_exists($valueMap)) {
Please login to merge, or discard this patch.