@@ -63,10 +63,10 @@ discard block |
||
| 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 |
||
| 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 | /** |
@@ -224,7 +224,7 @@ |
||
| 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 | /** |