From 5270b206cc77925ec286abf7dae3c7d674a2aede Mon Sep 17 00:00:00 2001 From: zero-24 Date: Tue, 28 Jun 2016 23:05:31 +0200 Subject: [PATCH] Fix Cs for weblinks backend (#232) * Update weblinks.php * Update weblink.php * Update controller.php --- src/administrator/components/com_weblinks/controller.php | 3 ++- .../components/com_weblinks/models/weblinks.php | 5 ++++- src/administrator/components/com_weblinks/tables/weblink.php | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/administrator/components/com_weblinks/controller.php b/src/administrator/components/com_weblinks/controller.php index 398ec36..a9e274c 100644 --- a/src/administrator/components/com_weblinks/controller.php +++ b/src/administrator/components/com_weblinks/controller.php @@ -20,7 +20,8 @@ class WeblinksController extends JControllerLegacy * Method to display a view. * * @param boolean $cacheable If true, the view output will be cached - * @param array $urlparams An array of safe url parameters and their variable types, for valid values see {@link JFilterInput::clean()}. + * @param array $urlparams An array of safe url parameters and their variable types, + * for valid values see {@link JFilterInput::clean()}. * * @return JControllerLegacy This object to support chaining. * diff --git a/src/administrator/components/com_weblinks/models/weblinks.php b/src/administrator/components/com_weblinks/models/weblinks.php index 86829d9..2d65e54 100644 --- a/src/administrator/components/com_weblinks/models/weblinks.php +++ b/src/administrator/components/com_weblinks/models/weblinks.php @@ -19,7 +19,7 @@ class WeblinksModelWeblinks extends JModelList /** * Constructor. * - * @param array An optional associative array of configuration settings. + * @param array $config An optional associative array of configuration settings. * * @see JControllerLegacy * @since 1.6 @@ -60,6 +60,9 @@ class WeblinksModelWeblinks extends JModelList /** * Method to auto-populate the model state. * + * @param string $ordering An optional ordering field. + * @param string $direction An optional direction (asc|desc). + * * @return void * * @note Calling getState in this method will result in recursion. diff --git a/src/administrator/components/com_weblinks/tables/weblink.php b/src/administrator/components/com_weblinks/tables/weblink.php index 45df9be..3759b86 100644 --- a/src/administrator/components/com_weblinks/tables/weblink.php +++ b/src/administrator/components/com_weblinks/tables/weblink.php @@ -45,7 +45,7 @@ class WeblinksTableWeblink extends JTable /** * Overload the store method for the Weblinks table. * - * @param boolean Toggle whether null values should be updated. + * @param boolean $updateNulls Toggle whether null values should be updated. * * @return boolean True on success, false on failure. * @@ -122,7 +122,7 @@ class WeblinksTableWeblink extends JTable return false; } - // check for valid name + // Check for valid name if (trim($this->title) == '') { $this->setError(JText::_('COM_WEBLINKS_ERR_TABLES_TITLE'));