@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | * @author Georges.L (Geolim4) <[email protected]> |
| 12 | 12 | * |
| 13 | 13 | */ |
| 14 | -declare(strict_types=1); |
|
| 14 | +declare(strict_types = 1); |
|
| 15 | 15 | |
| 16 | 16 | namespace Phpfastcache\Drivers\Redis; |
| 17 | 17 | |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | * Check for Cross-Driver type confusion |
| 135 | 135 | */ |
| 136 | 136 | if ($item instanceof Item) { |
| 137 | - return (bool)$this->instance->del($item->getKey()); |
|
| 137 | + return (bool) $this->instance->del($item->getKey()); |
|
| 138 | 138 | } |
| 139 | 139 | |
| 140 | 140 | throw new PhpfastcacheInvalidArgumentException('Cross-Driver type confusion detected'); |
@@ -161,13 +161,13 @@ discard block |
||
| 161 | 161 | { |
| 162 | 162 | // used_memory |
| 163 | 163 | $info = $this->instance->info(); |
| 164 | - $date = (new \DateTime())->setTimestamp(\time() - $info[ 'uptime_in_seconds' ]); |
|
| 164 | + $date = (new \DateTime())->setTimestamp(\time() - $info['uptime_in_seconds']); |
|
| 165 | 165 | |
| 166 | 166 | return (new DriverStatistic()) |
| 167 | 167 | ->setData(\implode(', ', \array_keys($this->itemInstances))) |
| 168 | 168 | ->setRawData($info) |
| 169 | - ->setSize((int)$info[ 'used_memory' ]) |
|
| 169 | + ->setSize((int) $info['used_memory']) |
|
| 170 | 170 | ->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.", |
| 171 | - $info[ 'redis_version' ], $date->format(DATE_RFC2822))); |
|
| 171 | + $info['redis_version'], $date->format(DATE_RFC2822))); |
|
| 172 | 172 | } |
| 173 | 173 | } |
| 174 | 174 | \ No newline at end of file |