@@ -83,8 +83,8 @@ |
||
83 | 83 | |
84 | 84 | $files = new RecursiveIteratorIterator |
85 | 85 | ( |
86 | - new RecursiveDirectoryIterator($source, RecursiveDirectoryIterator::SKIP_DOTS), |
|
87 | - RecursiveIteratorIterator::CHILD_FIRST |
|
86 | + new RecursiveDirectoryIterator($source, RecursiveDirectoryIterator::SKIP_DOTS), |
|
87 | + RecursiveIteratorIterator::CHILD_FIRST |
|
88 | 88 | ); |
89 | 89 | |
90 | 90 | foreach ($files as $fileinfo) { |
@@ -139,10 +139,10 @@ discard block |
||
139 | 139 | { |
140 | 140 | try { |
141 | 141 | $server = isset($this->config[ 'ssdb' ]) ? $this->config[ 'ssdb' ] : [ |
142 | - 'host' => "127.0.0.1", |
|
143 | - 'port' => 8888, |
|
144 | - 'password' => '', |
|
145 | - 'timeout' => 2000, |
|
142 | + 'host' => "127.0.0.1", |
|
143 | + 'port' => 8888, |
|
144 | + 'password' => '', |
|
145 | + 'timeout' => 2000, |
|
146 | 146 | ]; |
147 | 147 | |
148 | 148 | $host = $server[ 'host' ]; |
@@ -183,9 +183,9 @@ discard block |
||
183 | 183 | * using hardcoded offset of pair key-value :-( |
184 | 184 | */ |
185 | 185 | $stat->setInfo(sprintf("Ssdb-server v%s with a total of %s call(s).\n For more information see RawData.", $info[ 2 ], $info[ 6 ])) |
186 | - ->setRawData($info) |
|
187 | - ->setData(implode(', ', array_keys($this->itemInstances))) |
|
188 | - ->setSize($this->instance->dbsize()); |
|
186 | + ->setRawData($info) |
|
187 | + ->setData(implode(', ', array_keys($this->itemInstances))) |
|
188 | + ->setSize($this->instance->dbsize()); |
|
189 | 189 | |
190 | 190 | return $stat; |
191 | 191 | } |
@@ -27,7 +27,7 @@ |
||
27 | 27 | return true; |
28 | 28 | } else if (constant($CONSTANT_NAME) !== $driverName) { |
29 | 29 | trigger_error('Memcache collision detected, you used both Memcache and Memcached driver in your script, this may leads to unexpected behaviours', |
30 | - E_USER_WARNING); |
|
30 | + E_USER_WARNING); |
|
31 | 31 | |
32 | 32 | return false; |
33 | 33 | } |
@@ -43,7 +43,7 @@ |
||
43 | 43 | $this->driver->setItem($this); |
44 | 44 | } else { |
45 | 45 | throw new phpFastCacheInvalidArgumentException(sprintf('$key must be a string, got type "%s" instead.', |
46 | - gettype($key))); |
|
46 | + gettype($key))); |
|
47 | 47 | } |
48 | 48 | } |
49 | 49 |
@@ -80,9 +80,9 @@ discard block |
||
80 | 80 | protected function driverRead(CacheItemInterface $item) |
81 | 81 | { |
82 | 82 | return [ |
83 | - self::DRIVER_DATA_WRAPPER_INDEX => true, |
|
84 | - self::DRIVER_TAGS_WRAPPER_INDEX => [], |
|
85 | - self::DRIVER_EDATE_WRAPPER_INDEX => new \DateTime(), |
|
83 | + self::DRIVER_DATA_WRAPPER_INDEX => true, |
|
84 | + self::DRIVER_TAGS_WRAPPER_INDEX => [], |
|
85 | + self::DRIVER_EDATE_WRAPPER_INDEX => new \DateTime(), |
|
86 | 86 | ]; |
87 | 87 | } |
88 | 88 | |
@@ -132,9 +132,9 @@ discard block |
||
132 | 132 | { |
133 | 133 | $stat = new DriverStatistic(); |
134 | 134 | $stat->setInfo('[Devtrue] A void info string') |
135 | - ->setSize(0) |
|
136 | - ->setData(implode(', ', array_keys($this->itemInstances))) |
|
137 | - ->setRawData(true); |
|
135 | + ->setSize(0) |
|
136 | + ->setData(implode(', ', array_keys($this->itemInstances))) |
|
137 | + ->setRawData(true); |
|
138 | 138 | |
139 | 139 | return $stat; |
140 | 140 | } |
@@ -133,9 +133,9 @@ |
||
133 | 133 | $date = (new \DateTime())->setTimestamp(time() - $info[ 'total_cache_uptime' ]); |
134 | 134 | |
135 | 135 | return (new DriverStatistic()) |
136 | - ->setInfo(sprintf("The Wincache daemon is up since %s.\n For more information see RawData.", $date->format(DATE_RFC2822))) |
|
137 | - ->setSize($memInfo[ 'memory_free' ] - $memInfo[ 'memory_total' ]) |
|
138 | - ->setData(implode(', ', array_keys($this->itemInstances))) |
|
139 | - ->setRawData($memInfo); |
|
136 | + ->setInfo(sprintf("The Wincache daemon is up since %s.\n For more information see RawData.", $date->format(DATE_RFC2822))) |
|
137 | + ->setSize($memInfo[ 'memory_free' ] - $memInfo[ 'memory_total' ]) |
|
138 | + ->setData(implode(', ', array_keys($this->itemInstances))) |
|
139 | + ->setRawData($memInfo); |
|
140 | 140 | } |
141 | 141 | } |
142 | 142 | \ No newline at end of file |
@@ -137,10 +137,10 @@ |
||
137 | 137 | $date = (new \DateTime())->setTimestamp($stats[ 'start_time' ]); |
138 | 138 | |
139 | 139 | return (new DriverStatistic()) |
140 | - ->setData(implode(', ', array_keys($this->itemInstances))) |
|
141 | - ->setInfo(sprintf("The APC cache is up since %s, and have %d item(s) in cache.\n For more information see RawData.", $date->format(DATE_RFC2822), |
|
140 | + ->setData(implode(', ', array_keys($this->itemInstances))) |
|
141 | + ->setInfo(sprintf("The APC cache is up since %s, and have %d item(s) in cache.\n For more information see RawData.", $date->format(DATE_RFC2822), |
|
142 | 142 | $stats[ 'num_entries' ])) |
143 | - ->setRawData($stats) |
|
144 | - ->setSize($stats[ 'mem_size' ]); |
|
143 | + ->setRawData($stats) |
|
144 | + ->setSize($stats[ 'mem_size' ]); |
|
145 | 145 | } |
146 | 146 | } |
147 | 147 | \ No newline at end of file |
@@ -137,10 +137,10 @@ |
||
137 | 137 | $info = xcache_info(XC_TYPE_VAR, 0); |
138 | 138 | |
139 | 139 | return (new DriverStatistic()) |
140 | - ->setSize(abs($info[ 'size' ] - $info[ 'avail' ])) |
|
141 | - ->setData(implode(', ', array_keys($this->itemInstances))) |
|
142 | - ->setInfo(sprintf("Xcache v%s with following modules loaded:\n %s", XCACHE_VERSION, str_replace(' ', ', ', XCACHE_MODULES))) |
|
143 | - ->setRawData($info); |
|
140 | + ->setSize(abs($info[ 'size' ] - $info[ 'avail' ])) |
|
141 | + ->setData(implode(', ', array_keys($this->itemInstances))) |
|
142 | + ->setInfo(sprintf("Xcache v%s with following modules loaded:\n %s", XCACHE_VERSION, str_replace(' ', ', ', XCACHE_MODULES))) |
|
143 | + ->setRawData($info); |
|
144 | 144 | } else { |
145 | 145 | throw new \RuntimeException("PhpFastCache is not able to read Xcache configuration. Please put this to your php.ini:\n |
146 | 146 | [xcache.admin] |
@@ -127,9 +127,9 @@ |
||
127 | 127 | { |
128 | 128 | $stat = new DriverStatistic(); |
129 | 129 | $stat->setInfo('[Devnull] A void info string') |
130 | - ->setSize(0) |
|
131 | - ->setData(implode(', ', array_keys($this->itemInstances))) |
|
132 | - ->setRawData(null); |
|
130 | + ->setSize(0) |
|
131 | + ->setData(implode(', ', array_keys($this->itemInstances))) |
|
132 | + ->setRawData(null); |
|
133 | 133 | |
134 | 134 | return $stat; |
135 | 135 | } |