From 18281bbb12f323c20764a5128f962912782b852a Mon Sep 17 00:00:00 2001 From: eduard13 Date: Sat, 7 Dec 2019 08:16:26 +0200 Subject: [PATCH] Fixing static tests --- .../Backend/Block/System/Account/Edit/Form.php | 2 +- app/code/Magento/User/Block/Role/Tab/Info.php | 14 +++++++++++++- .../Framework/Data/Form/Element/Password.php | 3 +++ 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/app/code/Magento/Backend/Block/System/Account/Edit/Form.php b/app/code/Magento/Backend/Block/System/Account/Edit/Form.php index 49ec305ddd761..c075585a6e4eb 100644 --- a/app/code/Magento/Backend/Block/System/Account/Edit/Form.php +++ b/app/code/Magento/Backend/Block/System/Account/Edit/Form.php @@ -68,7 +68,7 @@ public function __construct( } /** - * {@inheritdoc} + * @inheritdoc */ protected function _prepareForm() { diff --git a/app/code/Magento/User/Block/Role/Tab/Info.php b/app/code/Magento/User/Block/Role/Tab/Info.php index f71b7eebd3c32..721271c87c67d 100644 --- a/app/code/Magento/User/Block/Role/Tab/Info.php +++ b/app/code/Magento/User/Block/Role/Tab/Info.php @@ -6,7 +6,7 @@ namespace Magento\User\Block\Role\Tab; /** - * implementing now + * Info * * @SuppressWarnings(PHPMD.DepthOfInheritance) */ @@ -18,6 +18,8 @@ class Info extends \Magento\Backend\Block\Widget\Form\Generic implements \Magent const IDENTITY_VERIFICATION_PASSWORD_FIELD = 'current_password'; /** + * Get tab label + * * @return \Magento\Framework\Phrase */ public function getTabLabel() @@ -26,6 +28,8 @@ public function getTabLabel() } /** + * Get tab title + * * @return string */ public function getTabTitle() @@ -34,6 +38,8 @@ public function getTabTitle() } /** + * Can show tab + * * @return bool */ public function canShowTab() @@ -42,6 +48,8 @@ public function canShowTab() } /** + * Is tab hidden + * * @return bool */ public function isHidden() @@ -50,6 +58,8 @@ public function isHidden() } /** + * Before html rendering + * * @return $this */ public function _beforeToHtml() @@ -60,6 +70,8 @@ public function _beforeToHtml() } /** + * Form initializatiion + * * @return void */ protected function _initForm() diff --git a/lib/internal/Magento/Framework/Data/Form/Element/Password.php b/lib/internal/Magento/Framework/Data/Form/Element/Password.php index c71048dabd1df..df95133b4abf2 100644 --- a/lib/internal/Magento/Framework/Data/Form/Element/Password.php +++ b/lib/internal/Magento/Framework/Data/Form/Element/Password.php @@ -38,11 +38,14 @@ public function __construct( } /** + * Get field html + * * @return mixed */ public function getHtml() { $this->addClass('input-text admin__control-text'); + return parent::getHtml(); } }