From a8986da250a839d83a910ff55c2b2086a0ae68d4 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Mon, 2 Mar 2020 22:49:01 +0100 Subject: [PATCH] php cs and stan fixes --- Models/Profile.php | 6 ++--- .../AccountGroupSelector/BaseView.php | 26 ++++++++++++++++--- 2 files changed, 26 insertions(+), 6 deletions(-) diff --git a/Models/Profile.php b/Models/Profile.php index afc22d1..691befc 100644 --- a/Models/Profile.php +++ b/Models/Profile.php @@ -42,10 +42,10 @@ class Profile implements \JsonSerializable /** * Profile image. * - * @var null|int|Media + * @var Media * @since 1.0.0 */ - protected $image = null; + protected Media $image; /** * Birthday. @@ -61,7 +61,7 @@ class Profile implements \JsonSerializable * @var Account * @since 1.0.0 */ - protected $account = null; + protected Account $account; /** * Location data. diff --git a/Theme/Backend/Components/AccountGroupSelector/BaseView.php b/Theme/Backend/Components/AccountGroupSelector/BaseView.php index 1c3cb02..c798f50 100644 --- a/Theme/Backend/Components/AccountGroupSelector/BaseView.php +++ b/Theme/Backend/Components/AccountGroupSelector/BaseView.php @@ -30,9 +30,29 @@ use phpOMS\Views\View; */ class BaseView extends View { - private $id = ''; - private $name = ''; - private $isRequired = false; + /** + * Dom id + * + * @var string + * @since 1.0.0 + */ + private string $id = ''; + + /** + * Is required? + * + * @var bool + * @since 1.0.0 + */ + private bool $isRequired = false; + + /** + * Dom name + * + * @var string + * @since 1.0.0 + */ + private string $name = ''; /** * {@inheritdoc}