@@ -20,11 +20,11 @@ |
||
20 | 20 | { |
21 | 21 | $this->patterns = $patterns; |
22 | 22 | |
23 | - $patterns = array_map(static function (Pattern $pattern) : string { |
|
23 | + $patterns = array_map(static function(Pattern $pattern) : string { |
|
24 | 24 | return $pattern->getPattern(); |
25 | 25 | }, $this->patterns); |
26 | 26 | |
27 | - $this->regex = '/^(?:' . implode('|', $patterns) . ')$/i'; |
|
27 | + $this->regex = '/^(?:'.implode('|', $patterns).')$/i'; |
|
28 | 28 | } |
29 | 29 | |
30 | 30 | public function matches(string $word) : bool |