Skip to content

Commit

Permalink
Small if statment cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
donatj committed Nov 6, 2019
1 parent 86e45c0 commit adf857c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ApacheModRewriteGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function generateRewrite( string $from, string $to, int $type ) : string
);
}

if( ($fromScheme && $toScheme) && $fromScheme !== $toScheme && $toHost && $fromHost === $toHost ) {
if( $fromScheme && $toScheme && $toHost && $fromScheme !== $toScheme && $fromHost === $toHost ) {
throw new MismatchedSchemeException('Scheme specified on "FROM" of "' . $fromScheme . '" and "TO" of "' . $toScheme . '" do not match.');
}

Expand Down

0 comments on commit adf857c

Please sign in to comment.