Skip to content

Commit

Permalink
code-checker
Browse files Browse the repository at this point in the history
  • Loading branch information
aiphee authored and aiphee committed Aug 5, 2017
1 parent cb7c1d5 commit cc81763
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Caching/Storages/FileStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ private function verify(array $meta): bool
}
touch($meta[self::FILE]);

} elseif (!empty($meta[self::META_EXPIRE]) && $meta[self::META_EXPIRE] < time()) {
} else if (!empty($meta[self::META_EXPIRE]) && $meta[self::META_EXPIRE] < time()) {
break;
}

Expand Down Expand Up @@ -295,7 +295,7 @@ public function clean(array $conditions): void
if (is_dir($dir)) {
$items = Nette\Utils\Finder::findFiles('')->from($dir);
foreach ($items as $item) {
$this->delete((string)$item);
$this->delete((string) $item);
}
@rmdir($dir);
}
Expand Down

0 comments on commit cc81763

Please sign in to comment.