| @@ -54,7 +54,7 @@ | ||
| 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 | } | 
| @@ -43,7 +43,7 @@ discard block | ||
| 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 | ||
| 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 | } | 
| @@ -49,7 +49,7 @@ discard block | ||
| 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 | ||
| 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 | ||
| 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 | |
| @@ -54,7 +54,7 @@ | ||
| 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 | } | 
| @@ -54,7 +54,7 @@ | ||
| 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 | } | 
| @@ -49,7 +49,7 @@ discard block | ||
| 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 | ||
| 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 | ||
| 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 | |
| @@ -29,7 +29,6 @@ | ||
| 29 | 29 | use Org\Heigl\Hyphenator\Hyphenator; | 
| 30 | 30 | use Org\Heigl\Hyphenator\Options; | 
| 31 | 31 | use Org_Heigl\TextStatistics\Calculator\SentenceMaxSyllablesCalculator; | 
| 32 | -use Org_Heigl\TextStatistics\Calculator\SyllableCounter; | |
| 33 | 32 | use Org_Heigl\TextStatistics\Util\SyllableFilter; | 
| 34 | 33 | |
| 35 | 34 | class SentenceMaxSyllablesCalculatorFactory | 
| @@ -26,18 +26,13 @@ | ||
| 26 | 26 | |
| 27 | 27 | namespace Org_Heigl\TextStatistics\Service; | 
| 28 | 28 | |
| 29 | -use Org\Heigl\Hyphenator\Hyphenator; | |
| 30 | -use Org\Heigl\Hyphenator\Options; | |
| 31 | 29 | use Org_Heigl\TextStatistics\Calculator\AverageSentenceLengthCalculator; | 
| 32 | 30 | use Org_Heigl\TextStatistics\Calculator\SentenceCounter; | 
| 33 | -use Org_Heigl\TextStatistics\Calculator\SyllableCounter; | |
| 34 | 31 | use Org_Heigl\TextStatistics\Calculator\WienerSachtextFormel1Calculator; | 
| 35 | 32 | use Org_Heigl\TextStatistics\Calculator\WordCounter; | 
| 36 | 33 | use Org_Heigl\TextStatistics\Calculator\WordsWithNCharsCounter; | 
| 37 | 34 | use Org_Heigl\TextStatistics\Calculator\WordsWithNCharsPercentCalculator; | 
| 38 | -use Org_Heigl\TextStatistics\Calculator\WordsWithNSyllablesCounter; | |
| 39 | 35 | use Org_Heigl\TextStatistics\Calculator\WordsWithNSyllablesPercentCalculator; | 
| 40 | -use Org_Heigl\TextStatistics\Util\SyllableFilter; | |
| 41 | 36 | |
| 42 | 37 | class WienerSachtextFormel2CalculatorFactory | 
| 43 | 38 |  { | 
| @@ -26,18 +26,11 @@ | ||
| 26 | 26 | |
| 27 | 27 | namespace Org_Heigl\TextStatistics\Service; | 
| 28 | 28 | |
| 29 | -use Org\Heigl\Hyphenator\Hyphenator; | |
| 30 | -use Org\Heigl\Hyphenator\Options; | |
| 31 | 29 | use Org_Heigl\TextStatistics\Calculator\AverageSentenceLengthCalculator; | 
| 32 | 30 | use Org_Heigl\TextStatistics\Calculator\SentenceCounter; | 
| 33 | -use Org_Heigl\TextStatistics\Calculator\SyllableCounter; | |
| 34 | 31 | use Org_Heigl\TextStatistics\Calculator\WienerSachtextFormel1Calculator; | 
| 35 | 32 | use Org_Heigl\TextStatistics\Calculator\WordCounter; | 
| 36 | -use Org_Heigl\TextStatistics\Calculator\WordsWithNCharsCounter; | |
| 37 | -use Org_Heigl\TextStatistics\Calculator\WordsWithNCharsPercentCalculator; | |
| 38 | -use Org_Heigl\TextStatistics\Calculator\WordsWithNSyllablesCounter; | |
| 39 | 33 | use Org_Heigl\TextStatistics\Calculator\WordsWithNSyllablesPercentCalculator; | 
| 40 | -use Org_Heigl\TextStatistics\Util\SyllableFilter; | |
| 41 | 34 | |
| 42 | 35 | class WienerSachtextFormel3CalculatorFactory | 
| 43 | 36 |  { |