From b7bde4f15b918d724cc6a41a951708daca601369 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Wed, 30 May 2018 13:39:00 +0200 Subject: [PATCH] Use root namespace --- Admin/Install/Navigation.php | 2 +- Models/EditorDoc.php | 2 +- Models/EditorDocMapper.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Admin/Install/Navigation.php b/Admin/Install/Navigation.php index 8e3269e..d321673 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/Models/EditorDoc.php b/Models/EditorDoc.php index 499ba2b..5a032f1 100644 --- a/Models/EditorDoc.php +++ b/Models/EditorDoc.php @@ -235,7 +235,7 @@ class EditorDoc implements ArrayableInterface, \JsonSerializable public function __toString() { - return json_encode($this->toArray()); + return \json_encode($this->toArray()); } public function jsonSerialize() diff --git a/Models/EditorDocMapper.php b/Models/EditorDocMapper.php index bdf4da7..37636e4 100644 --- a/Models/EditorDocMapper.php +++ b/Models/EditorDocMapper.php @@ -26,7 +26,7 @@ class EditorDocMapper extends DataMapperAbstract /** * Columns. * - * @var array + * @var array> * @since 1.0.0 */ static protected $columns = [