mirror of
https://github.com/Karaka-Management/oms-Navigation.git
synced 2026-01-18 11:28:40 +00:00
Remove namespace from scalars
This commit is contained in:
parent
31d69ab491
commit
e24df84e24
|
|
@ -92,7 +92,7 @@ class Installer extends InstallerAbstract
|
|||
*
|
||||
* @param Pool $dbPool Database instance
|
||||
* @param array $data Link info
|
||||
* @param \int $parent Parent element (default is 0 for none)
|
||||
* @param int $parent Parent element (default is 0 for none)
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
/**
|
||||
* Module path.
|
||||
*
|
||||
* @var \string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
const MODULE_PATH = __DIR__;
|
||||
|
|
@ -46,7 +46,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
/**
|
||||
* Module version.
|
||||
*
|
||||
* @var \string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
const MODULE_VERSION = '1.0.0';
|
||||
|
|
@ -54,7 +54,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
/**
|
||||
* JavaScript files.
|
||||
*
|
||||
* @var \string[]
|
||||
* @var string[]
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public static $js = [
|
||||
|
|
@ -64,7 +64,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
/**
|
||||
* CSS files.
|
||||
*
|
||||
* @var \string[]
|
||||
* @var string[]
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public static $css = [
|
||||
|
|
@ -101,7 +101,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
/**
|
||||
* Module name.
|
||||
*
|
||||
* @var \string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
const MODULE_NAME = 'Navigation';
|
||||
|
|
@ -109,7 +109,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
/**
|
||||
* Localization files.
|
||||
*
|
||||
* @var \string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $localization = [
|
||||
|
|
@ -118,7 +118,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
/**
|
||||
* Providing.
|
||||
*
|
||||
* @var \string[]
|
||||
* @var string[]
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $providing = [
|
||||
|
|
@ -127,7 +127,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
/**
|
||||
* Dependencies.
|
||||
*
|
||||
* @var \string[]
|
||||
* @var string[]
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $dependencies = [
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ class Navigation
|
|||
/**
|
||||
* Load navigation based on request.
|
||||
*
|
||||
* @param \string[] $request Request hashes
|
||||
* @param string[] $request Request hashes
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ class NavigationView extends View
|
|||
/**
|
||||
* Language used for the navigation.
|
||||
*
|
||||
* @var \string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected $language = 'en';
|
||||
|
|
@ -61,7 +61,7 @@ class NavigationView extends View
|
|||
/**
|
||||
* Parent element used for navigation.
|
||||
*
|
||||
* @var \int
|
||||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected $parent = 0;
|
||||
|
|
@ -77,12 +77,12 @@ class NavigationView extends View
|
|||
/**
|
||||
* Get navigation Id.
|
||||
*
|
||||
* @return \int
|
||||
* @return int
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
*/
|
||||
public function getNavId() : \int
|
||||
public function getNavId() : int
|
||||
{
|
||||
return $this->navId;
|
||||
}
|
||||
|
|
@ -90,14 +90,14 @@ class NavigationView extends View
|
|||
/**
|
||||
* Set navigation Id.
|
||||
*
|
||||
* @param \int $navId Navigation id used for display
|
||||
* @param int $navId Navigation id used for display
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
*/
|
||||
public function setNavId(\int $navId)
|
||||
public function setNavId(int $navId)
|
||||
{
|
||||
$this->navId = $navId;
|
||||
}
|
||||
|
|
@ -127,49 +127,49 @@ class NavigationView extends View
|
|||
}
|
||||
|
||||
/**
|
||||
* @return \string
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
*/
|
||||
public function getLanguage() : \string
|
||||
public function getLanguage() : string
|
||||
{
|
||||
return $this->language;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \string $language
|
||||
* @param string $language
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
*/
|
||||
public function setLanguage(\string $language)
|
||||
public function setLanguage(string $language)
|
||||
{
|
||||
$this->language = $language;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \int
|
||||
* @return int
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
*/
|
||||
public function getParent() : \int
|
||||
public function getParent() : int
|
||||
{
|
||||
return $this->parent;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \int $parent
|
||||
* @param int $parent
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
*/
|
||||
public function setParent(\int $parent)
|
||||
public function setParent(int $parent)
|
||||
{
|
||||
$this->parent = $parent;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user