Completed
Pull Request — master (#340)
by
unknown
34:53
created
lib/Doctrine/Common/Cache/ApcuCache.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
lib/Doctrine/Common/Cache/PredisCache.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,11 +43,11 @@  discard block
 block discarded – undo
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);
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
         }
95 95
 
96 96
         // No lifetime, use MSET
97
-        $response = $this->client->mset(array_map(static function ($value) {
97
+        $response = $this->client->mset(array_map(static function($value) {
98 98
             return serialize($value);
99 99
         }, $keysAndValues));
100 100
 
Please login to merge, or discard this patch.