Fix easy errors found by PHPStan

[MAILPOET-2588]
This commit is contained in:
Jan Jakeš
2019-12-19 14:19:09 +01:00
committed by amine-mp
parent 27a842b037
commit 25fe3aba54
9 changed files with 12 additions and 6 deletions

View File

@ -60,10 +60,12 @@ class MetadataCache extends CacheProvider {
if ($result === false) {
throw new \RuntimeException("Error while writing to '$filename'");
}
return true;
}
protected function doDelete($id) {
@unlink($this->getFilename($id));
return true;
}
protected function doFlush() {
@ -72,6 +74,7 @@ class MetadataCache extends CacheProvider {
@unlink($filename);
}
}
return true;
}
protected function doGetStats() {