From eb5b4366eeca51fc921e8e851107e33f4318be16 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/Item.php | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Admin/Install/Navigation.php b/Admin/Install/Navigation.php index f8badca..2b17e8f 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/Item.php b/Models/Item.php index 80fb17d..ff7ac3e 100644 --- a/Models/Item.php +++ b/Models/Item.php @@ -76,7 +76,7 @@ class Item return $this->number; } - public function setNumber(int $number) /* : void */ + public function setNumber(int $number) : void { $this->number = $number; } @@ -86,7 +86,7 @@ class Item return $this->articleGroup; } - public function setArticleGroup(int $segment) /* : void */ + public function setArticleGroup(int $segment) : void { $this->articleGroup = $segment; } @@ -96,7 +96,7 @@ class Item return $this->salesGroup; } - public function setSalesGroup(int $segment) /* : void */ + public function setSalesGroup(int $segment) : void { $this->salesGroup = $segment; } @@ -106,7 +106,7 @@ class Item return $this->productGroup; } - public function setProductGroup(int $segment) /* : void */ + public function setProductGroup(int $segment) : void { $this->productGroup = $segment; } @@ -116,7 +116,7 @@ class Item return $this->segment; } - public function setSegment(int $segment) /* : void */ + public function setSegment(int $segment) : void { $this->segment = $segment; } @@ -126,7 +126,7 @@ class Item return $this->successor; } - public function setSuccessor(int $successor) /* : void */ + public function setSuccessor(int $successor) : void { $this->successor = $successor; } @@ -136,7 +136,7 @@ class Item return $this->media; } - public function addMedia(Media $media) /* : void */ + public function addMedia(Media $media) : void { $this->media[] = $media; } @@ -146,7 +146,7 @@ class Item return $this->info; } - public function setInfo(string $info) /* : void */ + public function setInfo(string $info) : void { $this->info = $info; }