From 0716d5e3e624071ff5da1619d15d8f6318e8c42c Mon Sep 17 00:00:00 2001 From: wilsonge Date: Tue, 13 Aug 2019 00:15:35 +0100 Subject: [PATCH] Fix code style errors in project --- src/administrator/components/com_weblinks/tables/weblink.php | 3 ++- src/administrator/manifests/packages/weblinks/script.php | 2 -- src/components/com_weblinks/models/weblink.php | 4 ++-- src/plugins/system/weblinks/weblinks.php | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/administrator/components/com_weblinks/tables/weblink.php b/src/administrator/components/com_weblinks/tables/weblink.php index a4963fb..f81d4c0 100644 --- a/src/administrator/components/com_weblinks/tables/weblink.php +++ b/src/administrator/components/com_weblinks/tables/weblink.php @@ -93,7 +93,8 @@ class WeblinksTableWeblink extends JTable // Verify that the alias is unique $table = JTable::getInstance('Weblink', 'WeblinksTable', array('dbo' => $this->getDbo())); - if ($table->load(array('language' => $this->language, 'alias' => $this->alias, 'catid' => $this->catid)) && ($table->id != $this->id || $this->id == 0)) + if ($table->load(array('language' => $this->language, 'alias' => $this->alias, 'catid' => $this->catid)) + && ($table->id != $this->id || $this->id == 0)) { $this->setError(JText::_('COM_WEBLINKS_ERROR_UNIQUE_ALIAS')); diff --git a/src/administrator/manifests/packages/weblinks/script.php b/src/administrator/manifests/packages/weblinks/script.php index cfb312b..e9a8179 100644 --- a/src/administrator/manifests/packages/weblinks/script.php +++ b/src/administrator/manifests/packages/weblinks/script.php @@ -19,8 +19,6 @@ class Pkg_WeblinksInstallerScript extends JInstallerScript /** * Extension script constructor. * - * @return void - * * @since __DEPLOY_VERSION__ */ public function __construct() diff --git a/src/components/com_weblinks/models/weblink.php b/src/components/com_weblinks/models/weblink.php index 688e303..3c6ce13 100644 --- a/src/components/com_weblinks/models/weblink.php +++ b/src/components/com_weblinks/models/weblink.php @@ -63,7 +63,7 @@ class WeblinksModelWeblink extends JModelItem /** * Method to get an object. * - * @param integer $id The id of the object to get. + * @param integer $pk The id of the object to get. * * @return mixed Object on success, false on failure. */ @@ -191,7 +191,7 @@ class WeblinksModelWeblink extends JModelItem /** * Method to increment the hit counter for the weblink * - * @param integer $id Optional ID of the weblink. + * @param integer $pk Optional ID of the weblink. * * @return boolean True on success */ diff --git a/src/plugins/system/weblinks/weblinks.php b/src/plugins/system/weblinks/weblinks.php index 27e5da4..ef3f33a 100644 --- a/src/plugins/system/weblinks/weblinks.php +++ b/src/plugins/system/weblinks/weblinks.php @@ -38,7 +38,7 @@ class PlgSystemWeblinks extends JPlugin /** * Method to add statistics information to Administrator control panel. * - * @param string $extension The extension requesting information. + * @param string $extension The extension requesting information. * * @return array containing statistical information. *