Completed
Push — master ( cd3289...7b068f )
by Andreas
02:15
created
src/Calculator/WordCounter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
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/Util/WordsWithNSyllablesOnlyFilter.php 1 patch
Spacing   +3 added lines, -3 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
                 $tokens->replace($token, []);
54 54
                 continue;
55 55
             }
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
                 if (0 === (int) $currPattern % 2) {
73 73
                     continue;
74 74
                 }
75
-                $sylable = mb_substr($string, $lastOne, $i-$lastOne);
75
+                $sylable = mb_substr($string, $lastOne, $i - $lastOne);
76 76
                 $lastOne = $i;
77 77
                 $syllables[] = $sylable;
78 78
             }
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
     {
100 100
         $wordsWithNSyllables = [];
101 101
         foreach ($tokens as $token) {
102
-            if (! $token->getHyphenatedContent()) {
102
+            if (!$token->getHyphenatedContent()) {
103 103
                 continue;
104 104
             }
105 105
 
Please login to merge, or discard this patch.
src/Calculator/WordMaxSyllablesCounter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Calculator/WordsWithNCharsCounter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Util/WordsWithNSyllablesFilter.php 1 patch
Spacing   +3 added lines, -3 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
                 $tokens->replace($token, []);
54 54
                 continue;
55 55
             }
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
                 if (0 === (int) $currPattern % 2) {
73 73
                     continue;
74 74
                 }
75
-                $sylable = mb_substr($string, $lastOne, $i-$lastOne);
75
+                $sylable = mb_substr($string, $lastOne, $i - $lastOne);
76 76
                 $lastOne = $i;
77 77
                 $syllables[] = $sylable;
78 78
             }
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
     {
100 100
         $wordsWithNSyllables = [];
101 101
         foreach ($tokens as $token) {
102
-            if (! $token->getHyphenatedContent()) {
102
+            if (!$token->getHyphenatedContent()) {
103 103
                 continue;
104 104
             }
105 105
 
Please login to merge, or discard this patch.
src/Calculator/CachingWordMaxSyllablesCounter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
         $text = $text->getPlainText();
38 38
         $hash = sha1($text);
39 39
 
40
-        if (! isset( static::$cache[$hash])) {
40
+        if (!isset(static::$cache[$hash])) {
41 41
             $result = parent::calculate($text);
42 42
             static::$cache[$hash] = $result;
43 43
         }
Please login to merge, or discard this patch.
src/Calculator/CachingWordCounter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
         $text = $text->getPlainText();
38 38
         $hash = sha1($text);
39 39
 
40
-        if (! isset( static::$cache[$hash])) {
40
+        if (!isset(static::$cache[$hash])) {
41 41
             $result = parent::calculate($text);
42 42
             static::$cache[$hash] = $result;
43 43
         }
Please login to merge, or discard this patch.
src/Calculator/CachingWordsWithNCharsCounter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
         $text = $text->getPlainText();
38 38
         $hash = sha1($text);
39 39
 
40
-        if (! isset( static::$cache[$hash])) {
40
+        if (!isset(static::$cache[$hash])) {
41 41
             $result = parent::calculate($text);
42 42
             static::$cache[$hash] = $result;
43 43
         }
Please login to merge, or discard this patch.