Completed
Push — master ( 4a9a55...d75acf )
by Andreas
03:15 queued 01:14
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/Calculator/FleschReadingEaseCalculatorGerman.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -38,13 +38,13 @@
 block discarded – undo
38 38
  */
39 39
 class FleschReadingEaseCalculatorGerman extends FleschReadingEaseCalculator
40 40
 {
41
-     /**
42
-     * Do the actual calculation of a statistic
43
-     *
44
-     * @param Text $text
45
-     *
46
-     * @return mixed
47
-     */
41
+        /**
42
+         * Do the actual calculation of a statistic
43
+         *
44
+         * @param Text $text
45
+         *
46
+         * @return mixed
47
+         */
48 48
     public function calculate(Text $text)
49 49
     {
50 50
         return 180 -
Please login to merge, or discard this patch.
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/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.
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
         $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/WordsWithNCharsCounter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
     {
58 58
         $tokens = $this->tokenizer->tokenize($text->getPlainText());
59 59
         foreach ($tokens as $token) {
60
-            if (! $token instanceof WordToken) {
60
+            if (!$token instanceof WordToken) {
61 61
                 $tokens->replace($token, []);
62 62
             }
63 63
             if (mb_strlen($token->getFilteredContent()) < $this->minChars) {
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/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/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.