Skip to content

Commit

Permalink
cs fix
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Sep 10, 2020
1 parent 31a5aa5 commit 90a79e5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/HttpsTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,17 @@ private function isGoingToBeForcedToHttps($match = null): bool
$matchedRouteName = $match->getMatchedRouteName();

if ($this->config['force_all_routes']) {
if (! empty($this->config['exclude_specific_routes'])
&& \in_array($matchedRouteName, $this->config['exclude_specific_routes'])) {
if (
! empty($this->config['exclude_specific_routes'])
&& in_array($matchedRouteName, $this->config['exclude_specific_routes'])
) {
return false;
}

return true;
}

if (! \in_array($matchedRouteName, $this->config['force_specific_routes'])) {
if (! in_array($matchedRouteName, $this->config['force_specific_routes'])) {
return false;
}

Expand Down

0 comments on commit 90a79e5

Please sign in to comment.