mirror of
https://github.com/Karaka-Management/oms-News.git
synced 2026-02-03 10:48:40 +00:00
Use root namespace
This commit is contained in:
parent
d4382dc954
commit
673bbc5653
|
|
@ -38,7 +38,7 @@ class Navigation
|
|||
*/
|
||||
public static function install(string $path = null, DatabasePool $dbPool = null) : void
|
||||
{
|
||||
$navData = json_decode(file_get_contents(__DIR__ . '/Navigation.install.json'), true);
|
||||
$navData = \json_decode(file_get_contents(__DIR__ . '/Navigation.install.json'), true);
|
||||
|
||||
$class = '\\Modules\\Navigation\\Admin\\Installer';
|
||||
/** @var $class \Modules\Navigation\Admin\Installer */
|
||||
|
|
|
|||
|
|
@ -243,7 +243,7 @@ final class Controller extends ModuleAbstract implements WebInterface
|
|||
*
|
||||
* @param RequestAbstract $request Request
|
||||
*
|
||||
* @return array
|
||||
* @return array<string, bool>
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
@ -426,7 +426,7 @@ final class Controller extends ModuleAbstract implements WebInterface
|
|||
*
|
||||
* @param RequestAbstract $request Request
|
||||
*
|
||||
* @return array
|
||||
* @return array<string, bool>
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ class BadgeMapper extends DataMapperAbstract
|
|||
/**
|
||||
* Columns.
|
||||
*
|
||||
* @var array
|
||||
* @var array<string, array<string, string>>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
static protected $columns = [
|
||||
|
|
|
|||
|
|
@ -452,7 +452,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable
|
|||
*/
|
||||
public function __toString()
|
||||
{
|
||||
return json_encode($this->toArray());
|
||||
return \json_encode($this->toArray());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ class NewsArticleMapper extends DataMapperAbstract
|
|||
/**
|
||||
* Columns.
|
||||
*
|
||||
* @var array
|
||||
* @var array<string, array<string, string>>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
static protected $columns = [
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user