mirror of
https://github.com/joomla-extensions/weblinks.git
synced 2025-01-12 07:55:53 +00:00
Fix code style errors in project
This commit is contained in:
parent
a96ef51de4
commit
0716d5e3e6
@ -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'));
|
||||
|
||||
|
@ -19,8 +19,6 @@ class Pkg_WeblinksInstallerScript extends JInstallerScript
|
||||
/**
|
||||
* Extension script constructor.
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @since __DEPLOY_VERSION__
|
||||
*/
|
||||
public function __construct()
|
||||
|
@ -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
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user