@@ -18,7 +18,7 @@ |
||
18 | 18 | use Phpfastcache\Core\Pool\ExtendedCacheItemPoolInterface; |
19 | 19 | use Phpfastcache\Drivers\Zenddisk\Driver as ZendDiskDriver; |
20 | 20 | use Phpfastcache\Exceptions\{ |
21 | - PhpfastcacheInvalidArgumentException, PhpfastcacheInvalidArgumentTypeException |
|
21 | + PhpfastcacheInvalidArgumentException, PhpfastcacheInvalidArgumentTypeException |
|
22 | 22 | }; |
23 | 23 | |
24 | 24 | /** |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | use Phpfastcache\Core\Pool\{DriverBaseTrait, ExtendedCacheItemPoolInterface}; |
19 | 19 | use Phpfastcache\Entities\DriverStatistic; |
20 | 20 | use Phpfastcache\Exceptions\{ |
21 | - PhpfastcacheInvalidArgumentException |
|
21 | + PhpfastcacheInvalidArgumentException |
|
22 | 22 | }; |
23 | 23 | use Psr\Cache\CacheItemInterface; |
24 | 24 | |
@@ -64,9 +64,9 @@ discard block |
||
64 | 64 | protected function driverRead(CacheItemInterface $item): array |
65 | 65 | { |
66 | 66 | return [ |
67 | - self::DRIVER_DATA_WRAPPER_INDEX => true, |
|
68 | - self::DRIVER_TAGS_WRAPPER_INDEX => [], |
|
69 | - self::DRIVER_EDATE_WRAPPER_INDEX => new \DateTime(), |
|
67 | + self::DRIVER_DATA_WRAPPER_INDEX => true, |
|
68 | + self::DRIVER_TAGS_WRAPPER_INDEX => [], |
|
69 | + self::DRIVER_EDATE_WRAPPER_INDEX => new \DateTime(), |
|
70 | 70 | ]; |
71 | 71 | } |
72 | 72 | |
@@ -116,9 +116,9 @@ discard block |
||
116 | 116 | { |
117 | 117 | $stat = new DriverStatistic(); |
118 | 118 | $stat->setInfo('[Devtrue] A void info string') |
119 | - ->setSize(0) |
|
120 | - ->setData(\implode(', ', \array_keys($this->itemInstances))) |
|
121 | - ->setRawData(true); |
|
119 | + ->setSize(0) |
|
120 | + ->setData(\implode(', ', \array_keys($this->itemInstances))) |
|
121 | + ->setRawData(true); |
|
122 | 122 | |
123 | 123 | return $stat; |
124 | 124 | } |
@@ -19,7 +19,7 @@ |
||
19 | 19 | use Phpfastcache\Core\Pool\ExtendedCacheItemPoolInterface; |
20 | 20 | use Phpfastcache\Drivers\Devtrue\Driver as DevtrueDriver; |
21 | 21 | use Phpfastcache\Exceptions\{ |
22 | - PhpfastcacheInvalidArgumentException, PhpfastcacheInvalidArgumentTypeException |
|
22 | + PhpfastcacheInvalidArgumentException, PhpfastcacheInvalidArgumentTypeException |
|
23 | 23 | }; |
24 | 24 | |
25 | 25 | /** |
@@ -20,7 +20,7 @@ |
||
20 | 20 | use Phpfastcache\Core\Pool\ExtendedCacheItemPoolInterface; |
21 | 21 | use Phpfastcache\Drivers\Cassandra\Driver as CassandraDriver; |
22 | 22 | use Phpfastcache\Exceptions\{ |
23 | - PhpfastcacheInvalidArgumentException, PhpfastcacheInvalidArgumentTypeException |
|
23 | + PhpfastcacheInvalidArgumentException, PhpfastcacheInvalidArgumentTypeException |
|
24 | 24 | }; |
25 | 25 | |
26 | 26 | /** |
@@ -19,7 +19,7 @@ |
||
19 | 19 | use Phpfastcache\Core\Pool\ExtendedCacheItemPoolInterface; |
20 | 20 | use Phpfastcache\Drivers\Wincache\Driver as WincacheDriver; |
21 | 21 | use Phpfastcache\Exceptions\{ |
22 | - PhpfastcacheInvalidArgumentException, PhpfastcacheInvalidArgumentTypeException |
|
22 | + PhpfastcacheInvalidArgumentException, PhpfastcacheInvalidArgumentTypeException |
|
23 | 23 | }; |
24 | 24 | |
25 | 25 | /** |
@@ -19,7 +19,7 @@ |
||
19 | 19 | use Phpfastcache\Core\Pool\ExtendedCacheItemPoolInterface; |
20 | 20 | use Phpfastcache\Drivers\Memcache\Driver as MemcacheDriver; |
21 | 21 | use Phpfastcache\Exceptions\{ |
22 | - PhpfastcacheInvalidArgumentException, PhpfastcacheInvalidArgumentTypeException |
|
22 | + PhpfastcacheInvalidArgumentException, PhpfastcacheInvalidArgumentTypeException |
|
23 | 23 | }; |
24 | 24 | |
25 | 25 | /** |
@@ -18,7 +18,7 @@ |
||
18 | 18 | use LevelDB as LeveldbClient; |
19 | 19 | use Phpfastcache\Core\Pool\{DriverBaseTrait, ExtendedCacheItemPoolInterface, IO\IOHelperTrait}; |
20 | 20 | use Phpfastcache\Exceptions\{ |
21 | - PhpfastcacheInvalidArgumentException, PhpfastcacheLogicException |
|
21 | + PhpfastcacheInvalidArgumentException, PhpfastcacheLogicException |
|
22 | 22 | }; |
23 | 23 | use Psr\Cache\CacheItemInterface; |
24 | 24 |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | * Check for Cross-Driver type confusion |
85 | 85 | */ |
86 | 86 | if ($item instanceof Item) { |
87 | - return (bool)$this->instance->set($item->getKey(), $this->encode($this->driverPreWrap($item))); |
|
87 | + return (bool) $this->instance->set($item->getKey(), $this->encode($this->driverPreWrap($item))); |
|
88 | 88 | } |
89 | 89 | |
90 | 90 | throw new PhpfastcacheInvalidArgumentException('Cross-Driver type confusion detected'); |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | $this->instance->close(); |
117 | 117 | $this->instance = null; |
118 | 118 | } |
119 | - $result = (bool)LeveldbClient::destroy($this->getLeveldbFile()); |
|
119 | + $result = (bool) LeveldbClient::destroy($this->getLeveldbFile()); |
|
120 | 120 | $this->driverConnect(); |
121 | 121 | |
122 | 122 | return $result; |
@@ -19,7 +19,7 @@ |
||
19 | 19 | use Phpfastcache\Core\Pool\ExtendedCacheItemPoolInterface; |
20 | 20 | use Phpfastcache\Drivers\Leveldb\Driver as LeveldbDriver; |
21 | 21 | use Phpfastcache\Exceptions\{ |
22 | - PhpfastcacheInvalidArgumentException, PhpfastcacheInvalidArgumentTypeException |
|
22 | + PhpfastcacheInvalidArgumentException, PhpfastcacheInvalidArgumentTypeException |
|
23 | 23 | }; |
24 | 24 | |
25 | 25 | /** |
@@ -16,11 +16,11 @@ discard block |
||
16 | 16 | namespace Phpfastcache\Drivers\Devfalse; |
17 | 17 | |
18 | 18 | use Phpfastcache\Core\Pool\{ |
19 | - DriverBaseTrait, ExtendedCacheItemPoolInterface |
|
19 | + DriverBaseTrait, ExtendedCacheItemPoolInterface |
|
20 | 20 | }; |
21 | 21 | use Phpfastcache\Entities\DriverStatistic; |
22 | 22 | use Phpfastcache\Exceptions\{ |
23 | - PhpfastcacheInvalidArgumentException |
|
23 | + PhpfastcacheInvalidArgumentException |
|
24 | 24 | }; |
25 | 25 | use Psr\Cache\CacheItemInterface; |
26 | 26 | |
@@ -66,9 +66,9 @@ discard block |
||
66 | 66 | protected function driverRead(CacheItemInterface $item): array |
67 | 67 | { |
68 | 68 | return [ |
69 | - self::DRIVER_DATA_WRAPPER_INDEX => false, |
|
70 | - self::DRIVER_TAGS_WRAPPER_INDEX => [], |
|
71 | - self::DRIVER_EDATE_WRAPPER_INDEX => new \DateTime(), |
|
69 | + self::DRIVER_DATA_WRAPPER_INDEX => false, |
|
70 | + self::DRIVER_TAGS_WRAPPER_INDEX => [], |
|
71 | + self::DRIVER_EDATE_WRAPPER_INDEX => new \DateTime(), |
|
72 | 72 | ]; |
73 | 73 | } |
74 | 74 | |
@@ -118,9 +118,9 @@ discard block |
||
118 | 118 | { |
119 | 119 | $stat = new DriverStatistic(); |
120 | 120 | $stat->setInfo('[Devfalse] A void info string') |
121 | - ->setSize(0) |
|
122 | - ->setData(\implode(', ', \array_keys($this->itemInstances))) |
|
123 | - ->setRawData(false); |
|
121 | + ->setSize(0) |
|
122 | + ->setData(\implode(', ', \array_keys($this->itemInstances))) |
|
123 | + ->setRawData(false); |
|
124 | 124 | |
125 | 125 | return $stat; |
126 | 126 | } |