Fix phpstan level 6

[MAILPOET-1969]
This commit is contained in:
Pavel Dohnal
2019-04-09 13:46:03 +02:00
committed by M. Shull
parent 46a0b7501b
commit 3e66e9e1dd
36 changed files with 320 additions and 244 deletions

View File

@ -51,12 +51,14 @@ if (!class_exists('ProgressBar', false)) {
* @return array|false Array of counters
*/
private function readProgress() {
if (file_exists($this->filename)) {
$json_content = file_get_contents($this->filename);
return json_decode($json_content);
} else {
if (!file_exists($this->filename)) {
return false;
}
$json_content = file_get_contents($this->filename);
if (is_string($json_content)) {
return json_decode($json_content);
}
return false;
}
/**