@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | { |
| 58 | 58 | $decodeMap = []; |
| 59 | 59 | foreach ($this->decodeMap as $encodedChar => $chars) { |
| 60 | - if ((string)$encodedChar === mb_substr($word, 0, mb_strlen((string)$encodedChar))) { |
|
| 60 | + if ((string) $encodedChar === mb_substr($word, 0, mb_strlen((string) $encodedChar))) { |
|
| 61 | 61 | $decodeMap[$encodedChar] = $chars; |
| 62 | 62 | } |
| 63 | 63 | } |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | } |
| 78 | 78 | |
| 79 | 79 | foreach ($this->getDecodeMap($word) as $encodedChar => $chars) { |
| 80 | - foreach ($this->convert(mb_substr($word, mb_strlen((string)$encodedChar))) as $suffix) { |
|
| 80 | + foreach ($this->convert(mb_substr($word, mb_strlen((string) $encodedChar))) as $suffix) { |
|
| 81 | 81 | foreach ($chars as $char) { |
| 82 | 82 | yield $char.$suffix; |
| 83 | 83 | } |