From 9b42634600b7761d55e61cdff008750e024ba10f Mon Sep 17 00:00:00 2001 From: Denitz <197527+Denitz@users.noreply.github.com> Date: Thu, 28 Sep 2023 12:18:19 +0300 Subject: [PATCH 1/2] fix --- .../com_tags/src/Controller/TagController.php | 16 ---------------- .../Exception/MissingComponentException.php | 13 ------------- libraries/src/Form/Field/HiddenField.php | 12 ------------ libraries/src/Toolbar/Button/DropdownButton.php | 14 -------------- 4 files changed, 55 deletions(-) diff --git a/administrator/components/com_tags/src/Controller/TagController.php b/administrator/components/com_tags/src/Controller/TagController.php index 80a723fd79be0..741bc70a86b49 100644 --- a/administrator/components/com_tags/src/Controller/TagController.php +++ b/administrator/components/com_tags/src/Controller/TagController.php @@ -40,22 +40,6 @@ protected function allowAdd($data = []) return $this->app->getIdentity()->authorise('core.create', 'com_tags'); } - /** - * Method to check if you can edit a record. - * - * @param array $data An array of input data. - * @param string $key The name of the key for the primary key. - * - * @return boolean - * - * @since 3.1 - */ - protected function allowEdit($data = [], $key = 'id') - { - // Since there is no asset tracking and no categories, revert to the component permissions. - return parent::allowEdit($data, $key); - } - /** * Method to run batch operations. * diff --git a/libraries/src/Component/Exception/MissingComponentException.php b/libraries/src/Component/Exception/MissingComponentException.php index d862b517f1b50..efdd106433163 100644 --- a/libraries/src/Component/Exception/MissingComponentException.php +++ b/libraries/src/Component/Exception/MissingComponentException.php @@ -22,17 +22,4 @@ */ class MissingComponentException extends RouteNotFoundException { - /** - * Constructor - * - * @param string $message The Exception message to throw. - * @param integer $code The Exception code. - * @param \Exception $previous The previous exception used for the exception chaining. - * - * @since 3.7.0 - */ - public function __construct($message = '', $code = 404, \Exception $previous = null) - { - parent::__construct($message, $code, $previous); - } } diff --git a/libraries/src/Form/Field/HiddenField.php b/libraries/src/Form/Field/HiddenField.php index 21beb3b705ca6..2f47f18a3d9f3 100644 --- a/libraries/src/Form/Field/HiddenField.php +++ b/libraries/src/Form/Field/HiddenField.php @@ -52,16 +52,4 @@ protected function getInput() // Trim the trailing line in the layout file return rtrim($this->getRenderer($this->layout)->render($this->getLayoutData()), PHP_EOL); } - - /** - * Method to get the data to be passed to the layout for rendering. - * - * @return array - * - * @since 3.7 - */ - protected function getLayoutData() - { - return parent::getLayoutData(); - } } diff --git a/libraries/src/Toolbar/Button/DropdownButton.php b/libraries/src/Toolbar/Button/DropdownButton.php index 97272da54c19e..915f45e7540f0 100644 --- a/libraries/src/Toolbar/Button/DropdownButton.php +++ b/libraries/src/Toolbar/Button/DropdownButton.php @@ -84,20 +84,6 @@ protected function prepareOptions(array &$options) } } - /** - * Render button HTML. - * - * @param array $options The button options. - * - * @return string The button HTML. - * - * @since 4.0.0 - */ - protected function renderButton(array &$options): string - { - return parent::renderButton($options); - } - /** * Get the button CSS Id. * From fb1990b60efe4ea9a724cbb9beab7dfaeb673f02 Mon Sep 17 00:00:00 2001 From: Hannes Papenberg Date: Fri, 29 Mar 2024 22:08:24 +0100 Subject: [PATCH 2/2] Update HiddenField.php --- libraries/src/Form/Field/HiddenField.php | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/libraries/src/Form/Field/HiddenField.php b/libraries/src/Form/Field/HiddenField.php index 2f47f18a3d9f3..b3e6b90c4f05c 100644 --- a/libraries/src/Form/Field/HiddenField.php +++ b/libraries/src/Form/Field/HiddenField.php @@ -39,17 +39,4 @@ class HiddenField extends FormField * @since 3.7 */ protected $layout = 'joomla.form.field.hidden'; - - /** - * Method to get the field input markup. - * - * @return string The field input markup. - * - * @since 1.7.0 - */ - protected function getInput() - { - // Trim the trailing line in the layout file - return rtrim($this->getRenderer($this->layout)->render($this->getLayoutData()), PHP_EOL); - } }