Passed
Push — master ( 07ece6...02f38b )
by Magnar Ovedal
03:29 queued 34s
created
src/WordFormatter/Leetspeak.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     {
59 59
         $decodeMap = [];
60 60
         foreach ($this->decodeMap as $encodedChar => $chars) {
61
-            if ((string)$encodedChar === mb_substr($word, 0, mb_strlen((string)$encodedChar))) {
61
+            if ((string) $encodedChar === mb_substr($word, 0, mb_strlen((string) $encodedChar))) {
62 62
                 $decodeMap[$encodedChar] = $chars;
63 63
             }
64 64
         }
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
         }
90 90
 
91 91
         foreach ($this->getDecodeMap($word) as $encodedChar => $chars) {
92
-            foreach ($this->formatWord(mb_substr($word, mb_strlen((string)$encodedChar))) as $suffix) {
92
+            foreach ($this->formatWord(mb_substr($word, mb_strlen((string) $encodedChar))) as $suffix) {
93 93
                 foreach ($chars as $char) {
94 94
                     yield $char.$suffix;
95 95
                 }
Please login to merge, or discard this patch.
src/Rule/GuessableData.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@
 block discarded – undo
133 133
             $guessableData = array_merge($guessableData, $password->getGuessableData());
134 134
         }
135 135
 
136
-        foreach ($this->getFormattedWords((string)$password) as $word) {
136
+        foreach ($this->getFormattedWords((string) $password) as $word) {
137 137
             foreach ($guessableData as $data) {
138 138
                 if ($this->contains($word, $data)) {
139 139
                     return $data;
Please login to merge, or discard this patch.