From d21b8b0cf151a54ebedd8bf13bf35d0e6409d9e2 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 6 Oct 2019 17:50:12 +0200 Subject: [PATCH] phpcs fixes --- Models/ContactElement.php | 46 +++++++++++++++---- .../AccountGroupSelector/BaseView.php | 7 +++ Theme/Backend/Lang/Navigation.en.lang.php | 4 +- Theme/Backend/Lang/api.en.lang.php | 4 +- Theme/Backend/Lang/en.lang.php | 4 +- Theme/Backend/profile-list.tpl.php | 4 +- Theme/Backend/profile-single.tpl.php | 4 +- 7 files changed, 60 insertions(+), 13 deletions(-) diff --git a/Models/ContactElement.php b/Models/ContactElement.php index 8a5b26b..4684a4f 100644 --- a/Models/ContactElement.php +++ b/Models/ContactElement.php @@ -24,20 +24,34 @@ namespace Modules\Profile\Models; */ class ContactElement { - private $id = 0; + /** + * ID. + * + * @var int + * @since 1.0.0 + */ + protected int $id = 0; - private $type = 0; + private int $type = 0; private $subtype = 0; private $value = ''; + /** + * Description. + * + * @var string + * @since 1.0.0 + */ + private string $description = ''; - private $description = ''; - - public function __construct() - { - } - + /** + * Get id. + * + * @return int Model id + * + * @since 1.0.0 + */ public function getId() : int { return $this->id; @@ -73,11 +87,27 @@ class ContactElement $this->value = $value; } + /** + * Get description + * + * @return string + * + * @since 1.0.0 + */ public function getDescription() : string { return $this->description; } + /** + * Set description + * + * @param string $description Description + * + * @return void + * + * @since 1.0.0 + */ public function setDescription(string $description) : void { $this->description = $description; diff --git a/Theme/Backend/Components/AccountGroupSelector/BaseView.php b/Theme/Backend/Components/AccountGroupSelector/BaseView.php index 5704ea0..6f215ae 100644 --- a/Theme/Backend/Components/AccountGroupSelector/BaseView.php +++ b/Theme/Backend/Components/AccountGroupSelector/BaseView.php @@ -51,6 +51,13 @@ class BaseView extends View return $this->id; } + /** + * Get name + * + * @return string + * + * @since 1.0.0 + */ public function getName() : string { return $this->name; diff --git a/Theme/Backend/Lang/Navigation.en.lang.php b/Theme/Backend/Lang/Navigation.en.lang.php index eb34f4e..0039a33 100644 --- a/Theme/Backend/Lang/Navigation.en.lang.php +++ b/Theme/Backend/Lang/Navigation.en.lang.php @@ -1,4 +1,4 @@ - [ 'List' => 'List', 'Overview' => 'Overview', diff --git a/Theme/Backend/Lang/api.en.lang.php b/Theme/Backend/Lang/api.en.lang.php index 237e496..7aec19b 100644 --- a/Theme/Backend/Lang/api.en.lang.php +++ b/Theme/Backend/Lang/api.en.lang.php @@ -1,4 +1,4 @@ - 'Installation of the module {$1} was successful.', ]; diff --git a/Theme/Backend/Lang/en.lang.php b/Theme/Backend/Lang/en.lang.php index 6f0fbf2..b163ffd 100644 --- a/Theme/Backend/Lang/en.lang.php +++ b/Theme/Backend/Lang/en.lang.php @@ -1,4 +1,4 @@ - [ 'Account' => 'Account', 'Account/Group' => 'Account/Group', diff --git a/Theme/Backend/profile-list.tpl.php b/Theme/Backend/profile-list.tpl.php index 0157521..1e70343 100644 --- a/Theme/Backend/profile-list.tpl.php +++ b/Theme/Backend/profile-list.tpl.php @@ -1,4 +1,4 @@ -