From 976656910d66884dcf49c33a751633cb5795ad7d 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/DrawImage.php | 2 +- Models/DrawImageMapper.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Admin/Install/Navigation.php b/Admin/Install/Navigation.php index b2206b0..90248d6 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/DrawImage.php b/Models/DrawImage.php index 2467f6b..5c05185 100644 --- a/Models/DrawImage.php +++ b/Models/DrawImage.php @@ -124,7 +124,7 @@ class DrawImage implements ArrayableInterface, \JsonSerializable public function __toString() { - return json_encode($this->toArray()); + return \json_encode($this->toArray()); } public function jsonSerialize() diff --git a/Models/DrawImageMapper.php b/Models/DrawImageMapper.php index e6ecd04..92ea3f7 100644 --- a/Models/DrawImageMapper.php +++ b/Models/DrawImageMapper.php @@ -26,7 +26,7 @@ class DrawImageMapper extends DataMapperAbstract /** * Columns. * - * @var array + * @var array> * @since 1.0.0 */ static protected $columns = [ @@ -38,7 +38,7 @@ class DrawImageMapper extends DataMapperAbstract /** * Has one relation. * - * @var array + * @var array> * @since 1.0.0 */ protected static $ownsOne = [