@@ -128,8 +128,10 @@ |
||
128 | 128 | public function clear() { |
129 | 129 | $items = glob("{$this->cacheFolder}/*.txt"); // get all file names |
130 | 130 | foreach($items as $item){ // iterate files |
131 | - if(is_file($item)) |
|
132 | - unlink($item); // delete file |
|
131 | + if(is_file($item)) { |
|
132 | + unlink($item); |
|
133 | + } |
|
134 | + // delete file |
|
133 | 135 | } |
134 | 136 | $this->deferredItems = []; |
135 | 137 | return true; |