From 5cd4405ebab16fd622ac29942c2c0a529ee24dd4 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Tue, 13 Mar 2018 20:55:24 +0100 Subject: [PATCH] Nullable+void typehint --- Admin/Install/Navigation.php | 2 +- Models/Audit.php | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Admin/Install/Navigation.php b/Admin/Install/Navigation.php index a0a0f09..70276b5 100644 --- a/Admin/Install/Navigation.php +++ b/Admin/Install/Navigation.php @@ -36,7 +36,7 @@ class Navigation * * @since 1.0.0 */ - public static function install(string $path = null, DatabasePool $dbPool = null) /* : void */ + public static function install(string $path = null, DatabasePool $dbPool = null) : void { $navData = json_decode(file_get_contents(__DIR__ . '/Navigation.install.json'), true); diff --git a/Models/Audit.php b/Models/Audit.php index 2014648..044b821 100644 --- a/Models/Audit.php +++ b/Models/Audit.php @@ -41,7 +41,7 @@ class Audit $this->createdAt = new \DateTime('now'); } - public function setType(int $type) /* : void */ + public function setType(int $type) : void { $this->type = $type; } @@ -51,7 +51,7 @@ class Audit return $this->type; } - public function setSubType(int $subtype) /* : void */ + public function setSubType(int $subtype) : void { $this->subtype = $subtype; } @@ -61,7 +61,7 @@ class Audit return $this->subtype; } - public function setModule(int $module) /* : void */ + public function setModule(int $module) : void { $this->module = $module; } @@ -71,7 +71,7 @@ class Audit return $this->module; } - public function setRef(string $ref) /* : void */ + public function setRef(string $ref) : void { $this->ref = $ref; } @@ -81,7 +81,7 @@ class Audit return $this->ref; } - public function setContent(string $content) /* : void */ + public function setContent(string $content) : void { $this->content = $content; } @@ -91,7 +91,7 @@ class Audit return $this->content; } - public function setOld(string $old) /* : void */ + public function setOld(string $old) : void { $this->old = $old; } @@ -101,7 +101,7 @@ class Audit return $this->old; } - public function setNew(string $new) /* : void */ + public function setNew(string $new) : void { $this->new = $new; } @@ -111,7 +111,7 @@ class Audit return $this->new; } - public function setCreatedBy($createdBy) /* : void */ + public function setCreatedBy($createdBy) : void { $this->createdBy = $createdBy; }