Skip to content

Commit

Permalink
code style
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Feb 5, 2018
1 parent 923c568 commit a01f185
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/SslCertificate.php
Expand Up @@ -189,12 +189,10 @@ protected function wildcardHostCoversHost(string $wildcardHost, string $host): b
}

$wildcardHostWithoutWildcard = substr($wildcardHost, 1);
$hostWithDottedPrefix = '.'.$host;
if (ends_with($hostWithDottedPrefix, $wildcardHostWithoutWildcard)) {
return true;
}

return false;
$hostWithDottedPrefix = ".{$host}";

return ends_with($hostWithDottedPrefix, $wildcardHostWithoutWildcard);
}

public function getRawCertificateFieldsJson(): string
Expand Down

0 comments on commit a01f185

Please sign in to comment.