Passed
Push — master ( 92f8ce...effd12 )
by hugh
12:15
created
src/Cache/Store.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
             return [];
157 157
         }
158 158
 
159
-        $primaryKeys = Collection::make($keys)->values()->map(function ($key) {
159
+        $primaryKeys = Collection::make($keys)->values()->map(function($key) {
160 160
             return $this->makePrimaryKey($key);
161 161
         });
162 162
 
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
 
173 173
         $response = $this->getOts()->batchGetRow($request);
174 174
 
175
-        $results = Collection::make($keys)->values()->mapWithKeys(function ($key) {
175
+        $results = Collection::make($keys)->values()->mapWithKeys(function($key) {
176 176
             return [$key => null];
177 177
         })->toArray();
178 178
 
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
             return true;
208 208
         }
209 209
 
210
-        $rows = Collection::make($values)->map(function ($value, $key) use ($seconds) {
210
+        $rows = Collection::make($values)->map(function($value, $key) use ($seconds) {
211 211
             return [
212 212
                 'operation_type' => OperationTypeConst::CONST_PUT,
213 213
                 'condition' => RowExistenceExpectationConst::CONST_IGNORE,
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
      */
253 253
     public function increment($key, $value = 1)
254 254
     {
255
-        return $this->incrementOrDecrement($key, $value, function ($current, $value) {
255
+        return $this->incrementOrDecrement($key, $value, function($current, $value) {
256 256
             return $current + $value;
257 257
         });
258 258
     }
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
      */
266 266
     public function decrement($key, $value = 1)
267 267
     {
268
-        return $this->incrementOrDecrement($key, $value, function ($current, $value) {
268
+        return $this->incrementOrDecrement($key, $value, function($current, $value) {
269 269
             return $current - $value;
270 270
         });
271 271
     }
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
             return false;
287 287
         }
288 288
 
289
-        $new = $callback((int) $current, $value);
289
+        $new = $callback((int)$current, $value);
290 290
 
291 291
         $request = [
292 292
             'table_name' => $this->getTable(),
@@ -437,7 +437,7 @@  discard block
 block discarded – undo
437 437
             'tables' => [
438 438
                 [
439 439
                     'table_name' => $this->getTable(),
440
-                    'rows' => Collection::make($response['rows'])->map(function ($row) {
440
+                    'rows' => Collection::make($response['rows'])->map(function($row) {
441 441
                         $row = Collection::make($row['primary_key'])->keyBy(0);
442 442
                         return [
443 443
                             'operation_type' => OperationTypeConst::CONST_DELETE,
Please login to merge, or discard this patch.