From 016659e5b59d59218717022c61f78711f0bbc13b Mon Sep 17 00:00:00 2001 From: haeber Date: Thu, 7 Sep 2017 10:24:19 +0200 Subject: [PATCH] fix(BE-300): fix code style --- src/Diff.php | 2 ++ src/Parameter.php | 2 +- src/Signature.php | 1 + src/Validator.php | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Diff.php b/src/Diff.php index 60b9e29..1bfd022 100644 --- a/src/Diff.php +++ b/src/Diff.php @@ -63,6 +63,7 @@ protected function getParametersAsArray(array $parameters) /** * @param Parameter $parameter + * @return void */ protected function addMissingParameter(Parameter $parameter) { @@ -71,6 +72,7 @@ protected function addMissingParameter(Parameter $parameter) /** * @param Parameter $parameter + * @return void */ protected function addAdditionalParameter(Parameter $parameter) { diff --git a/src/Parameter.php b/src/Parameter.php index df70882..8c4e877 100644 --- a/src/Parameter.php +++ b/src/Parameter.php @@ -24,7 +24,7 @@ class Parameter implements ToArrayInterface * @param string $name * @param string|null $type */ - public function __construct($name, $type = null) + public function __construct(string $name, $type = null) { $this->name = $name; $this->type = $type; diff --git a/src/Signature.php b/src/Signature.php index dea587c..2d97761 100644 --- a/src/Signature.php +++ b/src/Signature.php @@ -42,6 +42,7 @@ public function toArray() /** * @param Parameter $parameter + * @return void */ protected function addParameter(Parameter $parameter) { diff --git a/src/Validator.php b/src/Validator.php index 515f314..5167822 100644 --- a/src/Validator.php +++ b/src/Validator.php @@ -50,6 +50,7 @@ public function compare(Signature $givenSignature, Signature $wishedSignature) /** * @param Signature $givenSignature * @param Signature $wishedSignature + * @return void * * @throws InvalidClosureException */