@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | use Phpfastcache\Core\Pool\{DriverBaseTrait, ExtendedCacheItemPoolInterface}; |
20 | 20 | use Phpfastcache\Entities\DriverStatistic; |
21 | 21 | use Phpfastcache\Exceptions\{ |
22 | - phpFastCacheInvalidArgumentException, phpFastCacheDriverException |
|
22 | + phpFastCacheInvalidArgumentException, phpFastCacheDriverException |
|
23 | 23 | }; |
24 | 24 | use Phpfastcache\Util\ArrayObject; |
25 | 25 | use Predis\Client as PredisClient; |
@@ -57,8 +57,8 @@ discard block |
||
57 | 57 | { |
58 | 58 | if(!empty($this->config->getOption('path'))){ |
59 | 59 | $this->instance = new PredisClient([ |
60 | - 'scheme' => 'unix', |
|
61 | - 'path' => $this->config->getOption('path') |
|
60 | + 'scheme' => 'unix', |
|
61 | + 'path' => $this->config->getOption('path') |
|
62 | 62 | ]); |
63 | 63 | }else{ |
64 | 64 | $this->instance = new PredisClient($this->getConfig()->getPredisConfigArray()); |
@@ -171,10 +171,10 @@ discard block |
||
171 | 171 | $date = (isset($info[ 'Server' ][ 'uptime_in_seconds' ]) ? (new \DateTime())->setTimestamp(time() - $info[ 'Server' ][ 'uptime_in_seconds' ]) : 'unknown date'); |
172 | 172 | |
173 | 173 | return (new DriverStatistic()) |
174 | - ->setData(\implode(', ', \array_keys($this->itemInstances))) |
|
175 | - ->setRawData($info) |
|
176 | - ->setSize((int) $size) |
|
177 | - ->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.", |
|
174 | + ->setData(\implode(', ', \array_keys($this->itemInstances))) |
|
175 | + ->setRawData($info) |
|
176 | + ->setSize((int) $size) |
|
177 | + ->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.", |
|
178 | 178 | $version, $date->format(DATE_RFC2822))); |
179 | 179 | } |
180 | 180 | } |
181 | 181 | \ No newline at end of file |