static analysis fixes

This commit is contained in:
Dennis Eichhorn 2019-06-06 22:09:26 +02:00
parent 6dec154f59
commit e15ce93138

View File

@ -144,7 +144,7 @@ class Template implements \JsonSerializable
public function getNewestReport() : Report public function getNewestReport() : Report
{ {
if (!empty($this->reports)) { if (!empty($this->reports)) {
return \end($this->reports()); return \end($this->reports);
} }
return new NullReport(); return new NullReport();
@ -283,7 +283,7 @@ class Template implements \JsonSerializable
} }
/** /**
* @return \array * @return array
* *
* @since 1.0.0 * @since 1.0.0
*/ */