mirror of
https://github.com/joomla-extensions/weblinks.git
synced 2025-01-27 06:18:29 +00:00
Fix Cs for weblinks backend (#232)
* Update weblinks.php * Update weblink.php * Update controller.php
This commit is contained in:
parent
258f337d59
commit
5270b206cc
@ -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.
|
||||
*
|
||||
|
@ -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.
|
||||
|
@ -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'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user