Skip to content

Commit

Permalink
Merge pull request #47 from bjeavons/code-style
Browse files Browse the repository at this point in the history
Fix code style violations

This now passes squizlabs/php_codesniffer 3.5.8
  • Loading branch information
mkopinsky committed Nov 25, 2020
2 parents dde9679 + 607c176 commit cf5b091
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Matchers/SpatialMatch.php
Expand Up @@ -150,7 +150,7 @@ protected static function graphMatch($password, $graph, $graphName)
$j += 1;
} else {
// otherwise push the pattern discovered so far, if any...

// Ignore length 1 or 2 chains.
if ($j - $i > 2) {
$result[] = [
Expand Down
2 changes: 1 addition & 1 deletion test/Matchers/L33tTest.php
Expand Up @@ -282,7 +282,7 @@ public function testGuessesL33tAndUppercased()
"extra guesses are added for both capitalization and common l33t substitutions"
);
}

public function variationsProvider()
{
return array(
Expand Down
2 changes: 1 addition & 1 deletion test/Matchers/RepeatTest.php
Expand Up @@ -22,7 +22,7 @@ public function testEmpty()
);
}
}

public function testSingleCharacterEmbeddedRepeats()
{
$prefixes = ['@', 'y4@'];
Expand Down
2 changes: 1 addition & 1 deletion test/Matchers/SpatialTest.php
Expand Up @@ -125,7 +125,7 @@ public function testShiftedCountForMultipleMatches()
]
);
}

protected function getBaseGuessCount($token)
{
// KEYBOARD_STARTING_POSITIONS * KEYBOARD_AVERAGE_DEGREE * (length - 1)
Expand Down

0 comments on commit cf5b091

Please sign in to comment.