diff --git a/Admin/Install/Navigation.php b/Admin/Install/Navigation.php index 9a9ec41..ca6423f 100644 --- a/Admin/Install/Navigation.php +++ b/Admin/Install/Navigation.php @@ -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 */ diff --git a/Admin/Installer.php b/Admin/Installer.php index 95254a3..3ab2693 100644 --- a/Admin/Installer.php +++ b/Admin/Installer.php @@ -310,7 +310,7 @@ class Installer extends InstallerAbstract ); $sth->bindValue(':id', $data['id'] ?? 0, \PDO::PARAM_INT); - $sth->bindValue(':pid', sha1(str_replace('/', '', $data['pid'] ?? '')), \PDO::PARAM_STR); + $sth->bindValue(':pid', sha1(\str_replace('/', '', $data['pid'] ?? '')), \PDO::PARAM_STR); $sth->bindValue(':name', $data['name'] ?? '', \PDO::PARAM_STR); $sth->bindValue(':type', $data['type'] ?? 1, \PDO::PARAM_INT); $sth->bindValue(':subtype', $data['subtype'] ?? 2, \PDO::PARAM_INT); @@ -338,7 +338,7 @@ class Installer extends InstallerAbstract ); $sth->bindValue(':id', $data['id'] ?? 0, \PDO::PARAM_INT); - $sth->bindValue(':pid', sha1(str_replace('/', '', $data['pid'] ?? '')), \PDO::PARAM_STR); + $sth->bindValue(':pid', sha1(\str_replace('/', '', $data['pid'] ?? '')), \PDO::PARAM_STR); $sth->bindValue(':name', $data['name'] ?? '', \PDO::PARAM_STR); $sth->bindValue(':type', $data['type'] ?? 1, \PDO::PARAM_INT); $sth->bindValue(':subtype', $data['subtype'] ?? 2, \PDO::PARAM_INT); diff --git a/Admin/Updater.php b/Admin/Updater.php index f99b745..51a0bab 100644 --- a/Admin/Updater.php +++ b/Admin/Updater.php @@ -36,7 +36,7 @@ class Updater extends UpdaterAbstract public static function update(DatabasePool $dbPool, InfoManager $info) : void { Directory::deletePath(__DIR__ . '/Update'); - mkdir('Update'); + \mkdir('Update'); parent::update($dbPool, $info); } } diff --git a/Controller.php b/Controller.php index 726f585..9909ffb 100644 --- a/Controller.php +++ b/Controller.php @@ -457,7 +457,7 @@ final class Controller extends ModuleAbstract implements WebInterface } $success = $this->app->appSettings->set( - json_decode((string) $request->getData('settings'), true), + \json_decode((string) $request->getData('settings'), true), true ); @@ -555,7 +555,7 @@ final class Controller extends ModuleAbstract implements WebInterface * * @param RequestAbstract $request Request * - * @return array + * @return array * * @since 1.0.0 */ @@ -738,7 +738,7 @@ final class Controller extends ModuleAbstract implements WebInterface * * @param RequestAbstract $request Request * - * @return array + * @return array * * @since 1.0.0 */ diff --git a/Models/AccountMapper.php b/Models/AccountMapper.php index 4c27601..7a719f8 100644 --- a/Models/AccountMapper.php +++ b/Models/AccountMapper.php @@ -34,7 +34,7 @@ class AccountMapper extends DataMapperAbstract /** * Columns. * - * @var array + * @var array> * @since 1.0.0 */ protected static $columns = [ @@ -55,7 +55,7 @@ class AccountMapper extends DataMapperAbstract /** * Has many relation. * - * @var array + * @var array> * @since 1.0.0 */ protected static $hasMany = [ diff --git a/Models/AccountPermissionMapper.php b/Models/AccountPermissionMapper.php index 1133ec2..7bf90d3 100644 --- a/Models/AccountPermissionMapper.php +++ b/Models/AccountPermissionMapper.php @@ -30,7 +30,7 @@ class AccountPermissionMapper extends DataMapperAbstract /** * Columns. * - * @var array + * @var array> * @since 1.0.0 */ protected static $columns = [ diff --git a/Models/GroupMapper.php b/Models/GroupMapper.php index 776d075..db5dfcf 100644 --- a/Models/GroupMapper.php +++ b/Models/GroupMapper.php @@ -30,7 +30,7 @@ class GroupMapper extends DataMapperAbstract /** * Columns. * - * @var array + * @var array> * @since 1.0.0 */ protected static $columns = [ diff --git a/Models/GroupPermissionMapper.php b/Models/GroupPermissionMapper.php index d04956f..bbbe6c7 100644 --- a/Models/GroupPermissionMapper.php +++ b/Models/GroupPermissionMapper.php @@ -30,7 +30,7 @@ class GroupPermissionMapper extends DataMapperAbstract /** * Columns. * - * @var array + * @var array> * @since 1.0.0 */ protected static $columns = [ diff --git a/Models/Module.php b/Models/Module.php index e330699..8d62a7f 100644 --- a/Models/Module.php +++ b/Models/Module.php @@ -189,13 +189,13 @@ class Module */ public function __toString() { - return json_encode($this->toArray()); + return \json_encode($this->toArray()); } /** * Json serialize. * - * @return string + * @return array * * @since 1.0.0 */ @@ -207,7 +207,7 @@ class Module /** * To array * - * @return array + * @return array * * @since 1.0.0 */ diff --git a/Models/ModuleMapper.php b/Models/ModuleMapper.php index d66862d..acb994b 100644 --- a/Models/ModuleMapper.php +++ b/Models/ModuleMapper.php @@ -30,7 +30,7 @@ class ModuleMapper extends DataMapperAbstract /** * Columns. * - * @var array + * @var array> * @since 1.0.0 */ protected static $columns = [ diff --git a/Theme/Backend/modules-list.tpl.php b/Theme/Backend/modules-list.tpl.php index fd32498..0eac27c 100644 --- a/Theme/Backend/modules-list.tpl.php +++ b/Theme/Backend/modules-list.tpl.php @@ -41,9 +41,9 @@ $installed = $this->app->moduleManager->getInstalledModules(); printHtml($module['name']['id']); ?> printHtml($module['name']['external']); ?> printHtml($module['version']); ?> - getHtml('Status') ?>">getHtml('Active')); - elseif (in_array($module['name']['internal'], $installed)) + elseif (\in_array($module['name']['internal'], $installed)) echo strtolower($this->getHtml('Inactive')); else echo strtolower($this->getHtml('Available')); ?> diff --git a/Theme/Backend/modules-single.tpl.php b/Theme/Backend/modules-single.tpl.php index 794d230..8d9fb11 100644 --- a/Theme/Backend/modules-single.tpl.php +++ b/Theme/Backend/modules-single.tpl.php @@ -46,7 +46,7 @@ $id = (string) $this->request->getData('id') ?? 1; printHtml($modules[$id]['description'] ); ?> - + - +