Completed
Push — master ( 8d6a7e...4a9a55 )
by Andreas
03:47
created
src/Calculator/CachingSyllableCounter.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
         $plain = $text->getPlainText();
38 38
         $hash  = sha1($plain);
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/CachingWordsWithNSyllablesCounter.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
         $plain = $text->getPlainText();
38 38
         $hash  = sha1($plain);
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/CachingWordsWithNSyllablesOnlyCounter.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
         $plain = $text->getPlainText();
38 38
         $hash  = sha1($plain);
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/WordMaxSyllablesCounter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
         $maxSyllables = 0;
62 62
 
63 63
         foreach ($tokens as $token) {
64
-            if (! $token instanceof WordToken) {
64
+            if (!$token instanceof WordToken) {
65 65
                 continue;
66 66
             }
67 67
 
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
         $plain = $text->getPlainText();
38 38
         $hash  = sha1($plain);
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/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.