mirror of
https://github.com/joomla-extensions/patchtester.git
synced 2025-02-02 11:58:26 +00:00
Fix misc. typehints
This commit is contained in:
parent
8a515def27
commit
ecfeb835d4
@ -12,6 +12,7 @@ use Joomla\CMS\Application\CMSApplication;
|
||||
use Joomla\CMS\Component\ComponentHelper;
|
||||
use Joomla\Input\Input;
|
||||
use Joomla\Registry\Registry;
|
||||
use PatchTester\Model\AbstractModel;
|
||||
|
||||
/**
|
||||
* Base controller for the patch testing component
|
||||
@ -86,13 +87,13 @@ abstract class AbstractController
|
||||
/**
|
||||
* Sets the state for the model object
|
||||
*
|
||||
* @param \JModel $model Model object
|
||||
* @param AbstractModel $model Model object
|
||||
*
|
||||
* @return Registry
|
||||
*
|
||||
* @since 2.0
|
||||
*/
|
||||
protected function initializeState(\JModel $model)
|
||||
protected function initializeState(AbstractModel $model)
|
||||
{
|
||||
$state = new Registry;
|
||||
|
||||
|
@ -10,6 +10,7 @@ namespace PatchTester\Controller;
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\Registry\Registry;
|
||||
use PatchTester\Model\AbstractModel;
|
||||
|
||||
/**
|
||||
* Default display controller
|
||||
@ -89,13 +90,13 @@ class DisplayController extends AbstractController
|
||||
/**
|
||||
* Sets the state for the model object
|
||||
*
|
||||
* @param \JModel $model Model object
|
||||
* @param AbstractModel $model Model object
|
||||
*
|
||||
* @return Registry
|
||||
*
|
||||
* @since 2.0
|
||||
*/
|
||||
protected function initializeState(\JModel $model)
|
||||
protected function initializeState(AbstractModel $model)
|
||||
{
|
||||
$state = parent::initializeState($model);
|
||||
|
||||
|
@ -21,7 +21,7 @@ abstract class AbstractModel
|
||||
/**
|
||||
* The database driver.
|
||||
*
|
||||
* @var JDatabaseDriver
|
||||
* @var \JDatabaseDriver
|
||||
* @since __DEPLOY_VERSION__
|
||||
*/
|
||||
protected $db;
|
||||
@ -37,12 +37,12 @@ abstract class AbstractModel
|
||||
/**
|
||||
* Instantiate the model.
|
||||
*
|
||||
* @param Registry $state The model state.
|
||||
* @param JDatabaseDriver $db The database adpater.
|
||||
* @param Registry $state The model state.
|
||||
* @param \JDatabaseDriver $db The database adpater.
|
||||
*
|
||||
* @since __DEPLOY_VERSION__
|
||||
*/
|
||||
public function __construct(Registry $state = null, JDatabaseDriver $db = null)
|
||||
public function __construct(Registry $state = null, \JDatabaseDriver $db = null)
|
||||
{
|
||||
$this->state = $state ?: new Registry;
|
||||
$this->db = $db ?: Factory::getDbo();
|
||||
@ -51,7 +51,7 @@ abstract class AbstractModel
|
||||
/**
|
||||
* Get the database driver.
|
||||
*
|
||||
* @return JDatabaseDriver
|
||||
* @return \JDatabaseDriver
|
||||
*
|
||||
* @since __DEPLOY_VERSION__
|
||||
*/
|
||||
@ -75,13 +75,13 @@ abstract class AbstractModel
|
||||
/**
|
||||
* Set the database driver.
|
||||
*
|
||||
* @param JDatabaseDriver $db The database driver.
|
||||
* @param \JDatabaseDriver $db The database driver.
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @since __DEPLOY_VERSION__
|
||||
*/
|
||||
public function setDb(JDatabaseDriver $db)
|
||||
public function setDb(\JDatabaseDriver $db)
|
||||
{
|
||||
$this->db = $db;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user