Skip to content

Commit

Permalink
Merge pull request #5 from DivineOmega/analysis-8Al1bl
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
DivineOmega authored Feb 25, 2018
2 parents b9a8b24 + 3cc28c4 commit d5c1356
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/PasswordExposedChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ private function makeRequest($hash)

private function getPasswordStatus($hash, Response $response)
{
if ($response->getStatusCode()!==200) {
if ($response->getStatusCode() !== 200) {
return PasswordStatus::UNKNOWN;
}

Expand All @@ -75,15 +75,13 @@ private function getPasswordStatus($hash, Response $response)

$lines = explode("\r\n", $body);

foreach($lines as $line) {
foreach ($lines as $line) {
list($exposedHashSuffix, $occurrences) = explode(':', $line);
if ($hashSuffix==$exposedHashSuffix) {
if ($hashSuffix == $exposedHashSuffix) {
return PasswordStatus::EXPOSED;
}
}

return PasswordStatus::NOT_EXPOSED;

}

}

0 comments on commit d5c1356

Please sign in to comment.