@@ -70,7 +70,7 @@ |
||
70 | 70 | } |
71 | 71 | |
72 | 72 | // No lifetime, use MSET |
73 | - $response = $this->client->mset(array_map(function ($value) { |
|
73 | + $response = $this->client->mset(array_map(function($value) { |
|
74 | 74 | return serialize($value); |
75 | 75 | }, $keysAndValues)); |
76 | 76 |
@@ -95,7 +95,7 @@ |
||
95 | 95 | |
96 | 96 | // Keys have lifetime, use SETEX for each of them |
97 | 97 | foreach ($keysAndValues as $key => $value) { |
98 | - if (!$this->redis->setex($key, $lifetime, $value)) { |
|
98 | + if ( ! $this->redis->setex($key, $lifetime, $value)) { |
|
99 | 99 | $success = false; |
100 | 100 | } |
101 | 101 | } |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Doctrine\Tests\Common\Cache; |
4 | 4 | |
5 | -use Doctrine\Common\Cache\ApcCache; |
|
6 | 5 | use Doctrine\Common\Cache\ArrayCache; |
7 | 6 | use Doctrine\Common\Cache\ChainCache; |
8 | 7 |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | { |
45 | 45 | $value = $this->includeFileForId($id); |
46 | 46 | |
47 | - if (! $value) { |
|
47 | + if ( ! $value) { |
|
48 | 48 | return false; |
49 | 49 | } |
50 | 50 | |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | { |
63 | 63 | $value = $this->includeFileForId($id); |
64 | 64 | |
65 | - if (! $value) { |
|
65 | + if ( ! $value) { |
|
66 | 66 | return false; |
67 | 67 | } |
68 | 68 | |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | $lifeTime = time() + $lifeTime; |
79 | 79 | } |
80 | 80 | |
81 | - $filename = $this->getFilename($id); |
|
81 | + $filename = $this->getFilename($id); |
|
82 | 82 | |
83 | 83 | $value = array( |
84 | 84 | 'lifetime' => $lifeTime, |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | // note: error suppression is still faster than `file_exists`, `is_file` and `is_readable` |
109 | 109 | $value = @include $fileName; |
110 | 110 | |
111 | - if (! isset($value['lifetime'])) { |
|
111 | + if ( ! isset($value['lifetime'])) { |
|
112 | 112 | return false; |
113 | 113 | } |
114 | 114 |