Completed
Branch feature/pre-split (0a985a)
by Anton
05:37
created
source/Spiral/ORM/EntityMap.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -63,10 +63,10 @@  discard block
 block discarded – undo
63 63
         }
64 64
 
65 65
         if (empty($entity->primaryKey())) {
66
-            throw new MapException("Unable to store non identified entity " . get_class($entity));
66
+            throw new MapException("Unable to store non identified entity ".get_class($entity));
67 67
         }
68 68
 
69
-        $cacheID = get_class($entity) . ':' . $entity->primaryKey();
69
+        $cacheID = get_class($entity).':'.$entity->primaryKey();
70 70
 
71 71
         return $this->entities[$cacheID] = $entity;
72 72
     }
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
             return null;
110 110
         }
111 111
 
112
-        return $this->entities[$class . ':' . $identity];
112
+        return $this->entities[$class.':'.$identity];
113 113
     }
114 114
 
115 115
     /**
Please login to merge, or discard this patch.
source/Spiral/ORM/AbstractRecord.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -224,7 +224,7 @@
 block discarded – undo
224 224
      */
225 225
     public function __toString()
226 226
     {
227
-        return static::class . '#' . hash('crc32', spl_object_hash($this));
227
+        return static::class.'#'.hash('crc32', spl_object_hash($this));
228 228
     }
229 229
 
230 230
     /**
Please login to merge, or discard this patch.