Completed
Push — master ( fa4795...8a1bd8 )
by Andreas
03:17 queued 01:13
created
src/Util/SyllableFilter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/Service/SyllableCounterFactory.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -37,10 +37,10 @@
 block discarded – undo
37 37
     {
38 38
         $o = new Options();
39 39
         $o->setDefaultLocale($locale)
40
-          ->setRightMin(2)
41
-          ->setLeftMin(2)
42
-          ->setWordMin(4)
43
-          ->setTokenizers('Whitespace', 'Punctuation');
40
+            ->setRightMin(2)
41
+            ->setLeftMin(2)
42
+            ->setWordMin(4)
43
+            ->setTokenizers('Whitespace', 'Punctuation');
44 44
 
45 45
         $hyphenator = new Hyphenator();
46 46
         $hyphenator->setOptions($o);
Please login to merge, or discard this patch.