@@ -65,7 +65,7 @@ |
||
65 | 65 | { |
66 | 66 | $redis->delete(['foo', 'bar'])->willReturn(true); |
67 | 67 | |
68 | - $this->delete(['foo','bar'])->shouldReturn(true); |
|
68 | + $this->delete(['foo', 'bar'])->shouldReturn(true); |
|
69 | 69 | } |
70 | 70 | |
71 | 71 | function it_can_check_the_existence_of_an_item_in_the_cache(Redis $redis) |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | public function set($key, $value, $timeToLive = null) |
56 | 56 | { |
57 | 57 | return $this->call( |
58 | - function () use ($key, $value, $timeToLive) { |
|
58 | + function() use ($key, $value, $timeToLive) { |
|
59 | 59 | return $this->cache->set($key, $value, $timeToLive); |
60 | 60 | }, |
61 | 61 | __METHOD__, |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | public function has($key) |
70 | 70 | { |
71 | 71 | return $this->call( |
72 | - function () use ($key) { |
|
72 | + function() use ($key) { |
|
73 | 73 | return $this->cache->has($key); |
74 | 74 | }, |
75 | 75 | __METHOD__, |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | public function get($key, $default = null) |
84 | 84 | { |
85 | 85 | return $this->call( |
86 | - function () use ($key, $default) { |
|
86 | + function() use ($key, $default) { |
|
87 | 87 | return $this->cache->get($key, $default); |
88 | 88 | }, |
89 | 89 | __METHOD__, |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | public function demand($key) |
98 | 98 | { |
99 | 99 | return $this->call( |
100 | - function () use ($key) { |
|
100 | + function() use ($key) { |
|
101 | 101 | return $this->cache->demand($key); |
102 | 102 | }, |
103 | 103 | __METHOD__, |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | public function delete($key) |
112 | 112 | { |
113 | 113 | return $this->call( |
114 | - function () use ($key) { |
|
114 | + function() use ($key) { |
|
115 | 115 | return $this->cache->delete($key); |
116 | 116 | }, |
117 | 117 | __METHOD__, |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | public function flush() |
126 | 126 | { |
127 | 127 | return $this->call( |
128 | - function () { |
|
128 | + function() { |
|
129 | 129 | return $this->cache->flush(); |
130 | 130 | }, |
131 | 131 | __METHOD__ |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | public function setItems(array $items, $timeToLive = null) |
139 | 139 | { |
140 | 140 | return $this->call( |
141 | - function () use ($items, $timeToLive) { |
|
141 | + function() use ($items, $timeToLive) { |
|
142 | 142 | return $this->cache->setItems($items, $timeToLive); |
143 | 143 | }, |
144 | 144 | __METHOD__, |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | public function getItems(array $keys) |
153 | 153 | { |
154 | 154 | return $this->call( |
155 | - function () use ($keys) { |
|
155 | + function() use ($keys) { |
|
156 | 156 | return $this->cache->getItems($keys); |
157 | 157 | }, |
158 | 158 | __METHOD__, |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | public function deleteItems(array $keys) |
167 | 167 | { |
168 | 168 | return $this->call( |
169 | - function () use ($keys) { |
|
169 | + function() use ($keys) { |
|
170 | 170 | return $this->cache->deleteItems($keys); |
171 | 171 | }, |
172 | 172 | __METHOD__, |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | public function getTimeToLive($key) |
185 | 185 | { |
186 | 186 | return $this->call( |
187 | - function () use($key) { |
|
187 | + function() use($key) { |
|
188 | 188 | return $this->cache->getTimeToLive($key); |
189 | 189 | }, |
190 | 190 | __METHOD__ |
@@ -149,7 +149,7 @@ |
||
149 | 149 | */ |
150 | 150 | private function populatePreviousCaches($index, $key, $item, $timeToLive) |
151 | 151 | { |
152 | - for (--$index; $index >= 0 ; $index--) { |
|
152 | + for (--$index; $index >= 0; $index--) { |
|
153 | 153 | $this->cache[$index]->set($key, $item, $timeToLive); |
154 | 154 | } |
155 | 155 | } |