@@ -59,7 +59,7 @@ |
||
59 | 59 | $results['version'] = phpversion('apcu'); |
60 | 60 | |
61 | 61 | // Seems start_time is really up_time, at least going by its value ? |
62 | - $elapsed = max($cache['start_time'], 1)/ 60; |
|
62 | + $elapsed = max($cache['start_time'], 1) / 60; |
|
63 | 63 | $results['hit_rate'] = sprintf("%.2f", $cache['num_hits'] / $elapsed); |
64 | 64 | $results['miss_rate'] = sprintf("%.2f", $cache['num_misses'] / $elapsed); |
65 | 65 |
@@ -145,7 +145,7 @@ |
||
145 | 145 | $host = empty($server[0]) ? 'localhost' : $server[0]; |
146 | 146 | $port = empty($server[1]) ? 6379 : (int) $server[1]; |
147 | 147 | |
148 | - set_error_handler(static function () { /* ignore php_network_getaddresses errors */ }); |
|
148 | + set_error_handler(static function() { /* ignore php_network_getaddresses errors */ }); |
|
149 | 149 | try |
150 | 150 | { |
151 | 151 | if ($this->_is_persist()) |
@@ -132,7 +132,7 @@ |
||
132 | 132 | * - 'miss_rate': The rate of cache lookups that did not find a matching item per minute. |
133 | 133 | * |
134 | 134 | * If the statistics cannot be obtained, an empty array is returned. |
135 | - */ |
|
135 | + */ |
|
136 | 136 | public function getStats() |
137 | 137 | { |
138 | 138 | $results = []; |