Enable no_useless_else rule in php-cs-fixer (#14420)

This commit is contained in:
Robert Korulczyk
2017-07-10 10:26:21 +02:00
committed by Alexander Makarov
parent 341b8d04c5
commit fe8a0a6a2e
103 changed files with 761 additions and 735 deletions

View File

@ -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;
}
/**