@@ -182,9 +182,9 @@ |
||
| 182 | 182 | $ttl = null; |
| 183 | 183 | } |
| 184 | 184 | |
| 185 | - if (null !== $value = $this->get($key)) { |
|
| 186 | - return $value; |
|
| 187 | - } |
|
| 185 | + if (null !== $value = $this->get($key)) { |
|
| 186 | + return $value; |
|
| 187 | + } |
|
| 188 | 188 | |
| 189 | 189 | $this->set($key, $value = $callable(), $ttl); |
| 190 | 190 | |
@@ -99,8 +99,8 @@ discard block |
||
| 99 | 99 | |
| 100 | 100 | /** |
| 101 | 101 | * Tente de créer le gestionnaire de cache souhaité |
| 102 | - * |
|
| 103 | - * @return BaseHandler |
|
| 102 | + * |
|
| 103 | + * @return BaseHandler |
|
| 104 | 104 | */ |
| 105 | 105 | protected function factory(): CacheInterface |
| 106 | 106 | { |
@@ -250,7 +250,7 @@ discard block |
||
| 250 | 250 | * |
| 251 | 251 | * ``` |
| 252 | 252 | * $cache->read('my_data'); |
| 253 | - * ``` |
|
| 253 | + * ``` |
|
| 254 | 254 | */ |
| 255 | 255 | public function read(string $key, mixed $default = null): mixed |
| 256 | 256 | { |
@@ -289,7 +289,7 @@ discard block |
||
| 289 | 289 | * |
| 290 | 290 | * ``` |
| 291 | 291 | * $cache->readMany(['my_data_1', 'my_data_2']); |
| 292 | - * ``` |
|
| 292 | + * ``` |
|
| 293 | 293 | */ |
| 294 | 294 | public function readMany(iterable $keys, mixed $default = null): iterable |
| 295 | 295 | { |