Passed
Push — master ( 2bd1bb...6033fd )
by hugh
08:09
created
src/Cache/Store.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
             return [];
147 147
         }
148 148
 
149
-        $primaryKeys = Collection::make($keys)->values()->map(function ($key) {
149
+        $primaryKeys = Collection::make($keys)->values()->map(function($key) {
150 150
             return $this->makePrimaryKey($key);
151 151
         });
152 152
 
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
 
163 163
         $response = $this->getOts()->batchGetRow($request);
164 164
 
165
-        $results = Collection::make($keys)->values()->mapWithKeys(function ($key) {
165
+        $results = Collection::make($keys)->values()->mapWithKeys(function($key) {
166 166
             return [$key => null];
167 167
         })->toArray();
168 168
 
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
             return true;
197 197
         }
198 198
 
199
-        $rows = Collection::make($values)->map(function ($value, $key) use ($seconds) {
199
+        $rows = Collection::make($values)->map(function($value, $key) use ($seconds) {
200 200
             return [
201 201
                 'operation_type' => OperationTypeConst::CONST_PUT,
202 202
                 'condition' => RowExistenceExpectationConst::CONST_IGNORE,
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
      */
239 239
     public function increment($key, $value = 1)
240 240
     {
241
-        return $this->incrementOrDecrement($key, $value, function ($current, $value) {
241
+        return $this->incrementOrDecrement($key, $value, function($current, $value) {
242 242
             return $current + $value;
243 243
         });
244 244
     }
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
      */
251 251
     public function decrement($key, $value = 1)
252 252
     {
253
-        return $this->incrementOrDecrement($key, $value, function ($current, $value) {
253
+        return $this->incrementOrDecrement($key, $value, function($current, $value) {
254 254
             return $current - $value;
255 255
         });
256 256
     }
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
             return false;
270 270
         }
271 271
 
272
-        $new = $callback((int) $current, $value);
272
+        $new = $callback((int)$current, $value);
273 273
 
274 274
         $request = [
275 275
             'table_name' => $this->getTable(),
Please login to merge, or discard this patch.