From 4e7ce69e6b6d3ec194d6b8651f7499a5cf985f9b Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 19 Nov 2017 23:20:11 +0100 Subject: [PATCH] Fix phpstorm inspections --- Models/PersonalAccountAbstract.php | 5 ++--- Theme/Backend/gl-profile.tpl.php | 2 +- Theme/Backend/stack-entries.tpl.php | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Models/PersonalAccountAbstract.php b/Models/PersonalAccountAbstract.php index e4cb1bd..c8737ec 100644 --- a/Models/PersonalAccountAbstract.php +++ b/Models/PersonalAccountAbstract.php @@ -27,10 +27,9 @@ use phpOMS\Utils\IO\ExchangeInterface; */ abstract class PersonalAccountAbstract extends AccountAbstract implements ExchangeInterface { - protected $id = 0; - - public function __construct() + public function __construct(int $id) { + parent::__construct($id); } public function getBalance() diff --git a/Theme/Backend/gl-profile.tpl.php b/Theme/Backend/gl-profile.tpl.php index d9c83e5..19138b1 100644 --- a/Theme/Backend/gl-profile.tpl.php +++ b/Theme/Backend/gl-profile.tpl.php @@ -11,4 +11,4 @@ * @version 1.0.0 * @link http://website.orange-management.de */ -echo $this->getData('nav')->render(); ?> +echo $this->getData('nav')->render(); diff --git a/Theme/Backend/stack-entries.tpl.php b/Theme/Backend/stack-entries.tpl.php index d9c83e5..17978c8 100644 --- a/Theme/Backend/stack-entries.tpl.php +++ b/Theme/Backend/stack-entries.tpl.php @@ -11,4 +11,4 @@ * @version 1.0.0 * @link http://website.orange-management.de */ -echo $this->getData('nav')->render(); ?> +echo $this->getData('nav')->render();