Test Failed
Branch master (e58a97)
by Magnar Ovedal
05:35
created
src/Rule/GuessableDataRule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
             $guessableData = array_merge($guessableData, $password->getGuessableData());
109 109
         }
110 110
 
111
-        $formattedPassword = $this->formatter->apply(CharTree::fromString((string)$password));
111
+        $formattedPassword = $this->formatter->apply(CharTree::fromString((string) $password));
112 112
         foreach ($guessableData as $data) {
113 113
             if ($this->contains($formattedPassword, $data)) {
114 114
                 return $data;
Please login to merge, or discard this patch.
src/CharTree.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
         foreach ($branches as $branch) {
69 69
             // When PHP 7.1 is no longer supported, change to using spl_object_id.
70 70
             $branchHash = spl_object_hash($branch);
71
-            $hash .= ';' . $branchHash;
71
+            $hash .= ';'.$branchHash;
72 72
         }
73 73
 
74 74
         if (!isset(self::$constructMemoization[$hash])) {
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
      */
204 204
     public function contains(string $string, bool $ignoreCase = false): bool
205 205
     {
206
-        $key = $string . ($ignoreCase ? 1 : 0);
206
+        $key = $string.($ignoreCase ? 1 : 0);
207 207
         if (!isset($this->containsMemoization[$key])) {
208 208
             $this->containsMemoization[$key] = $this->calculateContains($string, $ignoreCase);
209 209
         }
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
      */
219 219
     public function startsWith(string $string, bool $ignoreCase = false): bool
220 220
     {
221
-        $key = $string . ($ignoreCase ? 1 : 0);
221
+        $key = $string.($ignoreCase ? 1 : 0);
222 222
         if (!isset($this->startsWithMemoization[$key])) {
223 223
             $this->startsWithMemoization[$key] = $this->calculateStartsWith($string, $ignoreCase);
224 224
         }
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
                     yield $this->root;
301 301
                 } else {
302 302
                     foreach ($branch as $string) {
303
-                        yield $this->root . $string;
303
+                        yield $this->root.$string;
304 304
                     }
305 305
                 }
306 306
             }
Please login to merge, or discard this patch.