1
0
mirror of https://github.com/flarum/core.git synced 2025-08-05 07:57:46 +02:00

PSR-2 fixes

This commit is contained in:
Toby Zerner
2015-07-05 21:46:57 +09:30
parent 9e58a30e16
commit 6fe1c73a49
11 changed files with 18 additions and 19 deletions

View File

@@ -36,9 +36,7 @@ class RevisionCompiler implements Compiler
$ext = pathinfo($this->filename, PATHINFO_EXTENSION);
$file = $this->path.'/'.substr_replace($this->filename, '-'.$revision, -strlen($ext) - 1, 0);
if (! ($exists = file_exists($file))
|| filemtime($file) < $lastModTime) {
if (! ($exists = file_exists($file)) || filemtime($file) < $lastModTime) {
if ($exists) {
unlink($file);
}