Skip to content

Commit

Permalink
Fix coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
kocsismate committed Apr 29, 2020
1 parent de6a83d commit 9344d33
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/Harmony.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ protected function executeCondition(array $conditionArray): void

if ($condition->evaluate($this->request, $this->response) === false) {
$this->handle($this->request);

return;
}

Expand Down
15 changes: 9 additions & 6 deletions tests/HarmonyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,10 @@ static function (Harmony $harmony) use ($middlewareInCondition, $middlewareInCon
$harmony->addMiddleware($middlewareInCondition);
$harmony->addCondition(
new StubCondition(true),
static function (Harmony $harmony) use ($middlewareInCondition2) {
static function (Harmony $harmony) use ($middlewareInCondition2): void {
$harmony->addMiddleware($middlewareInCondition2);
});
}
);
$harmony->addMiddleware($middlewareInCondition3);
}
);
Expand Down Expand Up @@ -217,9 +218,10 @@ static function (Harmony $harmony) use ($middlewareInCondition, $middlewareInCon
$harmony->addMiddleware($middlewareInCondition);
$harmony->addCondition(
new StubCondition(true),
static function (Harmony $harmony) use ($middlewareInCondition2) {
static function (Harmony $harmony) use ($middlewareInCondition2): void {
$harmony->addMiddleware($middlewareInCondition2);
});
}
);
$harmony->addMiddleware($middlewareInCondition3);
}
);
Expand Down Expand Up @@ -250,9 +252,10 @@ static function (Harmony $harmony) use ($middlewareInCondition, $middlewareInCon
$harmony->addMiddleware($middlewareInCondition);
$harmony->addCondition(
new StubCondition(false),
static function (Harmony $harmony) use ($middlewareInCondition2) {
static function (Harmony $harmony) use ($middlewareInCondition2): void {
$harmony->addMiddleware($middlewareInCondition2);
});
}
);
$harmony->addMiddleware($middlewareInCondition3);
}
);
Expand Down

0 comments on commit 9344d33

Please sign in to comment.