Completed
Push — v5 ( b995b2...daaada )
by Georges
02:36
created
src/phpFastCache/Core/StandardPsr6StructureTrait.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
             throw new \InvalidArgumentException(sprintf('$key must be a string, got type "%s" instead.', gettype($key)));
72 72
         }
73 73
 
74
-        return $this->itemInstances[ $key ];
74
+        return $this->itemInstances[$key];
75 75
     }
76 76
 
77 77
     /**
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     public function setItem(CacheItemInterface $item)
83 83
     {
84 84
         if ($this->getClassNamespace() . '\\Item' === get_class($item)) {
85
-            $this->itemInstances[ $item->getKey() ] = $item;
85
+            $this->itemInstances[$item->getKey()] = $item;
86 86
 
87 87
             return $this;
88 88
         } else {
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
     {
100 100
         $collection = [];
101 101
         foreach ($keys as $key) {
102
-            $collection[ $key ] = $this->getItem($key);
102
+            $collection[$key] = $this->getItem($key);
103 103
         }
104 104
 
105 105
         return $collection;
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
     public function deleteItem($key)
138 138
     {
139 139
         if ($this->hasItem($key) && $this->driverDelete($this->getItem($key))) {
140
-            unset($this->itemInstances[ $key ]);
140
+            unset($this->itemInstances[$key]);
141 141
 
142 142
             return true;
143 143
         }
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
     public function save(CacheItemInterface $item)
172 172
     {
173 173
         if (!array_key_exists($item->getKey(), $this->itemInstances)) {
174
-            $this->itemInstances[ $item->getKey() ] = $item;
174
+            $this->itemInstances[$item->getKey()] = $item;
175 175
         }
176 176
 
177 177
         return $this->driverWrite($item) && $this->driverWriteTags($item);
@@ -184,10 +184,10 @@  discard block
 block discarded – undo
184 184
     public function saveDeferred(CacheItemInterface $item)
185 185
     {
186 186
         if (!array_key_exists($item->getKey(), $this->itemInstances)) {
187
-            $this->itemInstances[ $item->getKey() ] = $item;
187
+            $this->itemInstances[$item->getKey()] = $item;
188 188
         }
189 189
 
190
-        return $this->deferredList[ $item->getKey() ] = $item;
190
+        return $this->deferredList[$item->getKey()] = $item;
191 191
     }
192 192
 
193 193
     /**
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
         foreach ($this->deferredList as $key => $item) {
201 201
             $result = $this->save($item);
202 202
             if ($return !== false) {
203
-                unset($this->deferredList[ $key ]);
203
+                unset($this->deferredList[$key]);
204 204
                 $return = $result;
205 205
             }
206 206
         }
Please login to merge, or discard this patch.