Use phpstan level 2

[MAILPOET-1822]
This commit is contained in:
Pavel Dohnal
2019-02-20 13:55:10 +01:00
committed by M. Shull
parent 37d2134811
commit bed80e67f1
25 changed files with 123 additions and 31 deletions

View File

@@ -43,6 +43,10 @@ class ViewInBrowser {
$this->_abort();
}
/**
* @param \stdClass $data
* @return bool|\stdClass
*/
function _validateBrowserPreviewData($data) {
// either newsletter ID or hash must be defined, and newsletter must exist
if (empty($data->newsletter_id) && empty($data->newsletter_hash)) return false;