@@ -310,13 +310,13 @@ discard block |
||
| 310 | 310 | throw new LogicException('Les fichiers ne peuvent pas être incrémentés de manière atomique.'); |
| 311 | 311 | } |
| 312 | 312 | |
| 313 | - /** |
|
| 314 | - * {@inheritDoc} |
|
| 315 | - */ |
|
| 316 | - public function info() |
|
| 317 | - { |
|
| 313 | + /** |
|
| 314 | + * {@inheritDoc} |
|
| 315 | + */ |
|
| 316 | + public function info() |
|
| 317 | + { |
|
| 318 | 318 | return $this->getDirFileInfo($this->_config['path']); |
| 319 | - } |
|
| 319 | + } |
|
| 320 | 320 | |
| 321 | 321 | /** |
| 322 | 322 | * Définit la clé de cache actuelle que cette classe gère et crée un SplFileObject inscriptible |
@@ -485,13 +485,13 @@ discard block |
||
| 485 | 485 | |
| 486 | 486 | if ($fp = @opendir($sourceDir)) { |
| 487 | 487 | // réinitialise le tableau et s'assure que $source_dir a une barre oblique à la fin de l'appel initial |
| 488 | - if ($_recursion === false) { |
|
| 488 | + if ($_recursion === false) { |
|
| 489 | 489 | $_filedata = []; |
| 490 | 490 | $sourceDir = rtrim(realpath($sourceDir) ?: $sourceDir, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR; |
| 491 | 491 | } |
| 492 | 492 | |
| 493 | 493 | // Utilisé pour être foreach (scandir($source_dir, 1) comme $file), mais scandir() n'est tout simplement pas aussi rapide |
| 494 | - while (false !== ($file = readdir($fp))) { |
|
| 494 | + while (false !== ($file = readdir($fp))) { |
|
| 495 | 495 | if (is_dir($sourceDir . $file) && $file[0] !== '.' && $topLevelOnly === false) { |
| 496 | 496 | $this->getDirFileInfo($sourceDir . $file . DIRECTORY_SEPARATOR, $topLevelOnly, true); |
| 497 | 497 | } elseif (! is_dir($sourceDir . $file) && $file[0] !== '.') { |
@@ -234,13 +234,13 @@ |
||
| 234 | 234 | return (bool) ($this->_Redis->set($key, $value, ['nx', 'ex' => $duration])); |
| 235 | 235 | } |
| 236 | 236 | |
| 237 | - /** |
|
| 238 | - * {@inheritDoc} |
|
| 239 | - */ |
|
| 240 | - public function info() |
|
| 241 | - { |
|
| 242 | - return $this->_Redis->info(); |
|
| 243 | - } |
|
| 237 | + /** |
|
| 238 | + * {@inheritDoc} |
|
| 239 | + */ |
|
| 240 | + public function info() |
|
| 241 | + { |
|
| 242 | + return $this->_Redis->info(); |
|
| 243 | + } |
|
| 244 | 244 | |
| 245 | 245 | /** |
| 246 | 246 | * {@inheritDoc} |
@@ -407,13 +407,13 @@ |
||
| 407 | 407 | return $this->_Memcached->add($key, $value, $duration); |
| 408 | 408 | } |
| 409 | 409 | |
| 410 | - /** |
|
| 411 | - * {@inheritDoc} |
|
| 412 | - */ |
|
| 413 | - public function info() |
|
| 414 | - { |
|
| 415 | - return $this->_Memcached->getStats(); |
|
| 416 | - } |
|
| 410 | + /** |
|
| 411 | + * {@inheritDoc} |
|
| 412 | + */ |
|
| 413 | + public function info() |
|
| 414 | + { |
|
| 415 | + return $this->_Memcached->getStats(); |
|
| 416 | + } |
|
| 417 | 417 | |
| 418 | 418 | /** |
| 419 | 419 | * {@inheritDoc} |
@@ -339,13 +339,13 @@ |
||
| 339 | 339 | */ |
| 340 | 340 | abstract public function clearGroup(string $group): bool; |
| 341 | 341 | |
| 342 | - /** |
|
| 343 | - * {@inheritDoc} |
|
| 344 | - */ |
|
| 345 | - public function info() |
|
| 346 | - { |
|
| 347 | - return null; |
|
| 348 | - } |
|
| 342 | + /** |
|
| 343 | + * {@inheritDoc} |
|
| 344 | + */ |
|
| 345 | + public function info() |
|
| 346 | + { |
|
| 347 | + return null; |
|
| 348 | + } |
|
| 349 | 349 | |
| 350 | 350 | /** |
| 351 | 351 | * Effectue toute initialisation pour chaque groupe est nécessaire |
@@ -113,13 +113,13 @@ |
||
| 113 | 113 | return true; |
| 114 | 114 | } |
| 115 | 115 | |
| 116 | - /** |
|
| 117 | - * {@inheritDoc} |
|
| 118 | - */ |
|
| 119 | - public function info() |
|
| 120 | - { |
|
| 121 | - return wincache_ucache_info(true); |
|
| 122 | - } |
|
| 116 | + /** |
|
| 117 | + * {@inheritDoc} |
|
| 118 | + */ |
|
| 119 | + public function info() |
|
| 120 | + { |
|
| 121 | + return wincache_ucache_info(true); |
|
| 122 | + } |
|
| 123 | 123 | |
| 124 | 124 | /** |
| 125 | 125 | * {@inheritDoc} |
@@ -53,13 +53,13 @@ |
||
| 53 | 53 | */ |
| 54 | 54 | public function clearGroup(string $group): bool; |
| 55 | 55 | |
| 56 | - /** |
|
| 57 | - * Renvoie des informations sur l'ensemble du cache. |
|
| 58 | - * |
|
| 59 | - * Les informations retournées et la structure des données |
|
| 60 | - * varie selon le gestionnaire. |
|
| 61 | - * |
|
| 62 | - * @return array|false|object|null |
|
| 63 | - */ |
|
| 56 | + /** |
|
| 57 | + * Renvoie des informations sur l'ensemble du cache. |
|
| 58 | + * |
|
| 59 | + * Les informations retournées et la structure des données |
|
| 60 | + * varie selon le gestionnaire. |
|
| 61 | + * |
|
| 62 | + * @return array|false|object|null |
|
| 63 | + */ |
|
| 64 | 64 | public function info(); |
| 65 | 65 | } |