@@ -250,7 +250,7 @@ discard block |
||
250 | 250 | |
251 | 251 | /** |
252 | 252 | * Clear entire cache |
253 | - * @return boolean |
|
253 | + * @return false|null |
|
254 | 254 | */ |
255 | 255 | public function clear() |
256 | 256 | { |
@@ -264,6 +264,9 @@ discard block |
||
264 | 264 | return $this->clearPath($path); |
265 | 265 | } |
266 | 266 | |
267 | + /** |
|
268 | + * @param string $path |
|
269 | + */ |
|
267 | 270 | private function clearPath($path) |
268 | 271 | { |
269 | 272 | if (!file_exists($path)) |
@@ -8,15 +8,12 @@ |
||
8 | 8 | |
9 | 9 | namespace Maslosoft\Addendum\Cache; |
10 | 10 | |
11 | -use FilesystemIterator; |
|
12 | 11 | use Maslosoft\Addendum\Addendum; |
13 | 12 | use Maslosoft\Addendum\Helpers\SoftIncluder; |
14 | 13 | use Maslosoft\Addendum\Interfaces\AnnotatedInterface; |
15 | 14 | use Maslosoft\Addendum\Options\MetaOptions; |
16 | 15 | use Maslosoft\Cli\Shared\ConfigDetector; |
17 | 16 | use Maslosoft\Cli\Shared\Helpers\PhpExporter; |
18 | -use RecursiveDirectoryIterator; |
|
19 | -use RecursiveIteratorIterator; |
|
20 | 17 | use ReflectionClass; |
21 | 18 | use RuntimeException; |
22 | 19 | use UnexpectedValueException; |