mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Enable no_useless_else
rule in php-cs-fixer (#14420)
This commit is contained in:

committed by
Alexander Makarov

parent
341b8d04c5
commit
fe8a0a6a2e
@ -150,11 +150,11 @@ class FileCache extends Cache
|
||||
}
|
||||
|
||||
return @touch($cacheFile, $duration + time());
|
||||
} else {
|
||||
$error = error_get_last();
|
||||
Yii::warning("Unable to write cache file '{$cacheFile}': {$error['message']}", __METHOD__);
|
||||
return false;
|
||||
}
|
||||
|
||||
$error = error_get_last();
|
||||
Yii::warning("Unable to write cache file '{$cacheFile}': {$error['message']}", __METHOD__);
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -206,9 +206,9 @@ class FileCache extends Cache
|
||||
}
|
||||
|
||||
return $base . DIRECTORY_SEPARATOR . $key . $this->cacheFileSuffix;
|
||||
} else {
|
||||
return $this->cachePath . DIRECTORY_SEPARATOR . $key . $this->cacheFileSuffix;
|
||||
}
|
||||
|
||||
return $this->cachePath . DIRECTORY_SEPARATOR . $key . $this->cacheFileSuffix;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user