@@ -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; |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | $branches = []; |
| 69 | 69 | |
| 70 | 70 | foreach ($this->codeMap->getMap($charTree) as $char => $codedChars) { |
| 71 | - $branch = $this->applyInternal($charTree->getBranchesAfterRoot((string)$char)); |
|
| 71 | + $branch = $this->applyInternal($charTree->getBranchesAfterRoot((string) $char)); |
|
| 72 | 72 | |
| 73 | 73 | foreach ($codedChars as $codedChar) { |
| 74 | 74 | $branches[] = CharTree::fromString($codedChar, [$branch]); |