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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user