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

@ -27,13 +27,14 @@ class Analytics {
$this->wp = new WPFunctions;
}
/** @return array */
/** @return array|null */
function generateAnalytics() {
if ($this->shouldSend()) {
$data = $this->wp->applyFilters(self::ANALYTICS_FILTER, $this->reporter->getData());
$this->recordDataSent();
return $data;
}
return null;
}
/** @return boolean */