@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | */ |
197 | 197 | public function getStats(): DriverStatistic |
198 | 198 | { |
199 | - $stats = (array)$this->instance->getstats(); |
|
199 | + $stats = (array) $this->instance->getstats(); |
|
200 | 200 | $stats['uptime'] = (isset($stats['uptime']) ? $stats['uptime'] : 0); |
201 | 201 | $stats['version'] = (isset($stats['version']) ? $stats['version'] : 'UnknownVersion'); |
202 | 202 | $stats['bytes'] = (isset($stats['bytes']) ? $stats['version'] : 0); |
@@ -207,6 +207,6 @@ discard block |
||
207 | 207 | ->setData(\implode(', ', \array_keys($this->itemInstances))) |
208 | 208 | ->setInfo(\sprintf("The memcache daemon v%s is up since %s.\n For more information see RawData.", $stats['version'], $date->format(\DATE_RFC2822))) |
209 | 209 | ->setRawData($stats) |
210 | - ->setSize((int)$stats['bytes']); |
|
210 | + ->setSize((int) $stats['bytes']); |
|
211 | 211 | } |
212 | 212 | } |
213 | 213 | \ No newline at end of file |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | * Check for Cross-Driver type confusion |
146 | 146 | */ |
147 | 147 | if ($item instanceof Item) { |
148 | - return (bool)$this->instance->del($item->getKey()); |
|
148 | + return (bool) $this->instance->del($item->getKey()); |
|
149 | 149 | } |
150 | 150 | |
151 | 151 | throw new PhpfastcacheInvalidArgumentException('Cross-Driver type confusion detected'); |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | return (new DriverStatistic()) |
178 | 178 | ->setData(\implode(', ', \array_keys($this->itemInstances))) |
179 | 179 | ->setRawData($info) |
180 | - ->setSize((int)$info['used_memory']) |
|
180 | + ->setSize((int) $info['used_memory']) |
|
181 | 181 | ->setInfo(\sprintf("The Redis daemon v%s is up since %s.\n For more information see RawData. \n Driver size includes the memory allocation size.", |
182 | 182 | $info['redis_version'], $date->format(\DATE_RFC2822))); |
183 | 183 | } |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | * @see https://redis.io/commands/expire |
126 | 126 | */ |
127 | 127 | if ($ttl <= 0) { |
128 | - return (bool)$this->instance->expire($item->getKey(), 0); |
|
128 | + return (bool) $this->instance->expire($item->getKey(), 0); |
|
129 | 129 | } |
130 | 130 | |
131 | 131 | return $this->instance->setex($item->getKey(), $ttl, $this->encode($this->driverPreWrap($item)))->getPayload() === 'OK'; |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | * Check for Cross-Driver type confusion |
146 | 146 | */ |
147 | 147 | if ($item instanceof Item) { |
148 | - return (bool)$this->instance->del([$item->getKey()]); |
|
148 | + return (bool) $this->instance->del([$item->getKey()]); |
|
149 | 149 | } |
150 | 150 | |
151 | 151 | throw new PhpfastcacheInvalidArgumentException('Cross-Driver type confusion detected'); |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | return (new DriverStatistic()) |
193 | 193 | ->setData(\implode(', ', \array_keys($this->itemInstances))) |
194 | 194 | ->setRawData($info) |
195 | - ->setSize((int)$size) |
|
195 | + ->setSize((int) $size) |
|
196 | 196 | ->setInfo(\sprintf("The Redis daemon v%s is up since %s.\n For more information see RawData. \n Driver size includes the memory allocation size.", |
197 | 197 | $version, $date->format(\DATE_RFC2822))); |
198 | 198 | } |
@@ -204,6 +204,6 @@ |
||
204 | 204 | ->setData(\implode(', ', \array_keys($this->itemInstances))) |
205 | 205 | ->setInfo(\sprintf("The memcache daemon v%s is up since %s.\n For more information see RawData.", $stats['version'], $date->format(\DATE_RFC2822))) |
206 | 206 | ->setRawData($stats) |
207 | - ->setSize((int)$stats['bytes']); |
|
207 | + ->setSize((int) $stats['bytes']); |
|
208 | 208 | } |
209 | 209 | } |
210 | 210 | \ No newline at end of file |