@@ -77,7 +77,7 @@ |
||
77 | 77 | */ |
78 | 78 | protected function doFetchAtomic(string $id, callable $generator, int $ttl) |
79 | 79 | { |
80 | - if (! function_exists('apcu_entry')) { |
|
80 | + if ( ! function_exists('apcu_entry')) { |
|
81 | 81 | throw new RuntimeException('Atomic fetch (apcu_entry) is not supported by this version of apcu'); |
82 | 82 | } |
83 | 83 |
@@ -43,11 +43,11 @@ discard block |
||
43 | 43 | */ |
44 | 44 | protected function doFetchAtomic(string $id, callable $generator, int $ttl) |
45 | 45 | { |
46 | - if (! class_exists('\Predis\Pipeline\Atomic', false)) { |
|
46 | + if ( ! class_exists('\Predis\Pipeline\Atomic', false)) { |
|
47 | 47 | throw new RuntimeException('Atomic fetch (atomic pipeline) is not supported by this version of Predis'); |
48 | 48 | } |
49 | 49 | |
50 | - return $this->client->pipeline(['atomic'], static function ($pipe) use ($id, $generator, $ttl) { |
|
50 | + return $this->client->pipeline(['atomic'], static function($pipe) use ($id, $generator, $ttl) { |
|
51 | 51 | $pipelineCache = new static($pipe); |
52 | 52 | if ($pipelineCache->contains($id)) { |
53 | 53 | return $pipelineCache->fetch($id); |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | } |
94 | 94 | |
95 | 95 | // No lifetime, use MSET |
96 | - $response = $this->client->mset(array_map(static function ($value) { |
|
96 | + $response = $this->client->mset(array_map(static function($value) { |
|
97 | 97 | return serialize($value); |
98 | 98 | }, $keysAndValues)); |
99 | 99 |