@@ -106,7 +106,7 @@ |
||
| 106 | 106 | $guessableData = array_merge($guessableData, $password->getGuessableData()); |
| 107 | 107 | } |
| 108 | 108 | |
| 109 | - foreach ($this->formatter->apply(CharTree::fromString((string)$password)) as $formattedPassword) { |
|
| 109 | + foreach ($this->formatter->apply(CharTree::fromString((string) $password)) as $formattedPassword) { |
|
| 110 | 110 | foreach ($guessableData as $data) { |
| 111 | 111 | if ($this->contains($formattedPassword, $data)) { |
| 112 | 112 | return $data; |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | } |
| 62 | 62 | } |
| 63 | 63 | } |
| 64 | - foreach (array_keys($this->codeMap + [1 => true]) as $length) { |
|
| 64 | + foreach (array_keys($this->codeMap+[1 => true]) as $length) { |
|
| 65 | 65 | $truncator = new Truncator($length); |
| 66 | 66 | $truncator->setNext(new LengthFilter($length, $length)); |
| 67 | 67 | $this->charExtractors[$length] = $truncator; |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | $branches = []; |
| 48 | 48 | |
| 49 | 49 | foreach ($this->codeMap->getMap($charTree) as $char => $codedChars) { |
| 50 | - $branch = $this->applyCurrent($charTree->getBranchesAfterRoot((string)$char)); |
|
| 50 | + $branch = $this->applyCurrent($charTree->getBranchesAfterRoot((string) $char)); |
|
| 51 | 51 | |
| 52 | 52 | foreach ($codedChars as $codedChar) { |
| 53 | 53 | $branches[] = CharTree::fromString($codedChar, [$branch]); |