Completed
Branch feature/pre-split (d91fae)
by Anton
05:19
created
source/Spiral/ORM/Entities/EntityCache.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
             throw new CacheException('Entity cache size exceeded');
88 88
         }
89 89
 
90
-        return $this->data[get_class($entity) . '.' . $entity->primaryKey()] = $entity;
90
+        return $this->data[get_class($entity).'.'.$entity->primaryKey()] = $entity;
91 91
     }
92 92
 
93 93
     /**
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
             return;
102 102
         }
103 103
 
104
-        unset($this->data[get_class($entity) . '.' . $entity->primaryKey()]);
104
+        unset($this->data[get_class($entity).'.'.$entity->primaryKey()]);
105 105
     }
106 106
 
107 107
     /**
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
      */
115 115
     public function has($class, $primaryKey)
116 116
     {
117
-        return isset($this->data[$class . '.' . $primaryKey]);
117
+        return isset($this->data[$class.'.'.$primaryKey]);
118 118
     }
119 119
 
120 120
     /**
@@ -127,11 +127,11 @@  discard block
 block discarded – undo
127 127
      */
128 128
     public function get($class, $primaryKey)
129 129
     {
130
-        if (empty($this->data[$class . '.' . $primaryKey])) {
130
+        if (empty($this->data[$class.'.'.$primaryKey])) {
131 131
             return null;
132 132
         }
133 133
 
134
-        return $this->data[$class . '.' . $primaryKey];
134
+        return $this->data[$class.'.'.$primaryKey];
135 135
     }
136 136
 
137 137
     /**
Please login to merge, or discard this patch.