@@ -58,7 +58,7 @@ discard block |
||
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 |
||
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 | } |
@@ -40,7 +40,7 @@ |
||
40 | 40 | { |
41 | 41 | $this->constraints[] = new DateConstraint($min, $max, $weight); |
42 | 42 | |
43 | - StableSort::usort($this->constraints, static function (DateConstraint $a, DateConstraint $b): int { |
|
43 | + StableSort::usort($this->constraints, static function(DateConstraint $a, DateConstraint $b): int { |
|
44 | 44 | return $b->getWeight() <=> $a->getWeight(); |
45 | 45 | }); |
46 | 46 |