Passed
Push — v9 ( 5ca43c...c47e24 )
by Georges
01:57
created
lib/Phpfastcache/Cluster/Drivers/MasterSlaveReplication/Driver.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     public function getItem(string $key): ExtendedCacheItemInterface
55 55
     {
56 56
         return $this->getStandardizedItem(
57
-            $this->makeOperation(static fn (ExtendedCacheItemPoolInterface $pool) => $pool->getItem($key)) ?? new Item($this, $key),
57
+            $this->makeOperation(static fn(ExtendedCacheItemPoolInterface $pool) => $pool->getItem($key)) ?? new Item($this, $key),
58 58
             $this
59 59
         );
60 60
     }
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
     public function hasItem(string $key): bool
105 105
     {
106 106
         return $this->makeOperation(
107
-            static fn (ExtendedCacheItemPoolInterface $pool) => $pool->hasItem($key)
107
+            static fn(ExtendedCacheItemPoolInterface $pool) => $pool->hasItem($key)
108 108
         );
109 109
     }
110 110
 
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
     public function clear(): bool
115 115
     {
116 116
         return $this->makeOperation(
117
-            static fn (ExtendedCacheItemPoolInterface $pool) => $pool->clear()
117
+            static fn(ExtendedCacheItemPoolInterface $pool) => $pool->clear()
118 118
         );
119 119
     }
120 120
 
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
     public function deleteItem(string $key): bool
125 125
     {
126 126
         return $this->makeOperation(
127
-            static fn (ExtendedCacheItemPoolInterface $pool) => $pool->deleteItem($key)
127
+            static fn(ExtendedCacheItemPoolInterface $pool) => $pool->deleteItem($key)
128 128
         );
129 129
     }
130 130
 
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
     public function save(CacheItemInterface $item): bool
135 135
     {
136 136
         return $this->makeOperation(
137
-            function (ExtendedCacheItemPoolInterface $pool) use ($item) {
137
+            function(ExtendedCacheItemPoolInterface $pool) use ($item) {
138 138
                 /** @var ExtendedCacheItemInterface $item */
139 139
                 $item->setHit(true);
140 140
                 return $pool->save($this->getStandardizedItem($item, $pool));
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
     public function commit(): bool
150 150
     {
151 151
         return $this->makeOperation(
152
-            static fn (ExtendedCacheItemPoolInterface $pool) => $pool->commit()
152
+            static fn(ExtendedCacheItemPoolInterface $pool) => $pool->commit()
153 153
         );
154 154
     }
155 155
 }
Please login to merge, or discard this patch.