From e1ddb994a14451ea395beb6bbb5c2b7073917b3b Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Mon, 4 Feb 2019 22:29:55 +0100 Subject: [PATCH] Use global namespace+minor fixes --- Models/Client.php | 2 +- Models/ClientMapper.php | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Models/Client.php b/Models/Client.php index 97c5558..9ed6f27 100644 --- a/Models/Client.php +++ b/Models/Client.php @@ -79,7 +79,7 @@ class Client public function setReverseNumber($rev_no) : void { - if (!is_scalar($rev_no)) { + if (!\is_scalar($rev_no)) { throw new \Exception(); } diff --git a/Models/ClientMapper.php b/Models/ClientMapper.php index e2f955f..76b826d 100644 --- a/Models/ClientMapper.php +++ b/Models/ClientMapper.php @@ -75,8 +75,12 @@ final class ClientMapper extends DataMapperAbstract 'mapper' => ProfileMapper::class, 'src' => 'clientmgmt_client_account', ], - ]; - + ]; /** + * Has many relation. + * + * @var array> + * @since 1.0.0 + */ protected static $hasMany = [ 'files' => [ 'mapper' => MediaMapper::class, /* mapper of the related object */