@@ -54,7 +54,7 @@ |
||
54 | 54 | { |
55 | 55 | $tokens = $this->tokenizer->tokenize($text->getPlainText()); |
56 | 56 | foreach ($tokens as $token) { |
57 | - if (! $token instanceof WordToken) { |
|
57 | + if (!$token instanceof WordToken) { |
|
58 | 58 | $tokens->replace($token, []); |
59 | 59 | } |
60 | 60 | } |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | public function run(t\TokenRegistry $tokens) |
44 | 44 | { |
45 | 45 | foreach ($tokens as $token) { |
46 | - if (! $token instanceof t\WordToken) { |
|
46 | + if (!$token instanceof t\WordToken) { |
|
47 | 47 | $tokens->replace($token, []); |
48 | 48 | continue; |
49 | 49 | } |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | if (0 === (int) $currPattern % 2) { |
67 | 67 | continue; |
68 | 68 | } |
69 | - $sylable = mb_substr($string, $lastOne, $i-$lastOne); |
|
69 | + $sylable = mb_substr($string, $lastOne, $i - $lastOne); |
|
70 | 70 | $lastOne = $i; |
71 | 71 | $syllables[] = $sylable; |
72 | 72 | } |