Completed
Push — master ( 7b068f...d99b93 )
by Andreas
02:29
created
src/Util/WordsWithNSyllablesFilter.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     public function run(t\TokenRegistry $tokens)
50 50
     {
51 51
         foreach ($tokens as $token) {
52
-            if (! $token instanceof t\WordToken) {
52
+            if (!$token instanceof t\WordToken) {
53 53
                 continue;
54 54
             }
55 55
             $string = $token->getFilteredContent();
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
                 if (0 === (int) $currPattern % 2) {
72 72
                     continue;
73 73
                 }
74
-                $sylable = mb_substr($string, $lastOne, $i-$lastOne);
74
+                $sylable = mb_substr($string, $lastOne, $i - $lastOne);
75 75
                 $lastOne = $i;
76 76
                 $syllables[] = $sylable;
77 77
             }
@@ -98,10 +98,10 @@  discard block
 block discarded – undo
98 98
     {
99 99
         $wordsWithNSyllables = [];
100 100
         foreach ($tokens as $token) {
101
-            if (! $token instanceof t\WordToken) {
101
+            if (!$token instanceof t\WordToken) {
102 102
                 continue;
103 103
             }
104
-            if (! $token->getHyphenatedContent()) {
104
+            if (!$token->getHyphenatedContent()) {
105 105
                 continue;
106 106
             }
107 107
 
Please login to merge, or discard this patch.
src/Util/WordsWithNSyllablesOnlyFilter.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     public function run(t\TokenRegistry $tokens)
50 50
     {
51 51
         foreach ($tokens as $token) {
52
-            if (! $token instanceof t\WordToken) {
52
+            if (!$token instanceof t\WordToken) {
53 53
                 continue;
54 54
             }
55 55
             $string = $token->getFilteredContent();
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
                 if (0 === (int) $currPattern % 2) {
72 72
                     continue;
73 73
                 }
74
-                $sylable = mb_substr($string, $lastOne, $i-$lastOne);
74
+                $sylable = mb_substr($string, $lastOne, $i - $lastOne);
75 75
                 $lastOne = $i;
76 76
                 $syllables[] = $sylable;
77 77
             }
@@ -98,10 +98,10 @@  discard block
 block discarded – undo
98 98
     {
99 99
         $wordsWithNSyllables = [];
100 100
         foreach ($tokens as $token) {
101
-            if (! $token instanceof t\WordToken) {
101
+            if (!$token instanceof t\WordToken) {
102 102
                 continue;
103 103
             }
104
-            if (! $token->getHyphenatedContent()) {
104
+            if (!$token->getHyphenatedContent()) {
105 105
                 continue;
106 106
             }
107 107
 
Please login to merge, or discard this patch.
src/Util/SyllableFilter.php 1 patch
Spacing   +3 added lines, -3 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
                 continue;
48 48
             }
49 49
             $string = $token->getFilteredContent();
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
                 if (0 === (int) $currPattern % 2) {
66 66
                     continue;
67 67
                 }
68
-                $sylable = mb_substr($string, $lastOne, $i-$lastOne);
68
+                $sylable = mb_substr($string, $lastOne, $i - $lastOne);
69 69
                 $lastOne = $i;
70 70
                 $syllables[] = $sylable;
71 71
             }
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
     {
89 89
         $syllables = [];
90 90
         foreach ($tokens as $token) {
91
-            if (! $token instanceof t\WordToken) {
91
+            if (!$token instanceof t\WordToken) {
92 92
                 continue;
93 93
             }
94 94
             foreach ($token->getHyphenatedContent() as $syllable) {
Please login to merge, or discard this patch.