@@ -37,10 +37,10 @@ |
||
37 | 37 | { |
38 | 38 | $o = new Options(); |
39 | 39 | $o->setDefaultLocale($locale) |
40 | - ->setRightMin(2) |
|
41 | - ->setLeftMin(2) |
|
42 | - ->setWordMin(4) |
|
43 | - ->setTokenizers('Whitespace', 'Punctuation'); |
|
40 | + ->setRightMin(2) |
|
41 | + ->setLeftMin(2) |
|
42 | + ->setWordMin(4) |
|
43 | + ->setTokenizers('Whitespace', 'Punctuation'); |
|
44 | 44 | |
45 | 45 | $hyphenator = new Hyphenator(); |
46 | 46 | $hyphenator->setOptions($o); |
@@ -37,10 +37,10 @@ |
||
37 | 37 | { |
38 | 38 | $o = new Options(); |
39 | 39 | $o->setDefaultLocale($locale) |
40 | - ->setRightMin(2) |
|
41 | - ->setLeftMin(2) |
|
42 | - ->setWordMin(4) |
|
43 | - ->setTokenizers('Whitespace', 'Punctuation'); |
|
40 | + ->setRightMin(2) |
|
41 | + ->setLeftMin(2) |
|
42 | + ->setWordMin(4) |
|
43 | + ->setTokenizers('Whitespace', 'Punctuation'); |
|
44 | 44 | |
45 | 45 | $hyphenator = new Hyphenator(); |
46 | 46 | $hyphenator->setOptions($o); |
@@ -37,10 +37,10 @@ |
||
37 | 37 | { |
38 | 38 | $o = new Options(); |
39 | 39 | $o->setDefaultLocale($locale) |
40 | - ->setRightMin(2) |
|
41 | - ->setLeftMin(2) |
|
42 | - ->setWordMin(4) |
|
43 | - ->setTokenizers('Whitespace', 'Punctuation'); |
|
40 | + ->setRightMin(2) |
|
41 | + ->setLeftMin(2) |
|
42 | + ->setWordMin(4) |
|
43 | + ->setTokenizers('Whitespace', 'Punctuation'); |
|
44 | 44 | |
45 | 45 | $hyphenator = new Hyphenator(); |
46 | 46 | $hyphenator->setOptions($o); |
@@ -38,13 +38,13 @@ |
||
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 - |
@@ -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 |
@@ -37,10 +37,10 @@ |
||
37 | 37 | { |
38 | 38 | $o = new Options(); |
39 | 39 | $o->setDefaultLocale($locale) |
40 | - ->setRightMin(2) |
|
41 | - ->setLeftMin(2) |
|
42 | - ->setWordMin(4) |
|
43 | - ->setTokenizers('Whitespace', 'Punctuation'); |
|
40 | + ->setRightMin(2) |
|
41 | + ->setLeftMin(2) |
|
42 | + ->setWordMin(4) |
|
43 | + ->setTokenizers('Whitespace', 'Punctuation'); |
|
44 | 44 | |
45 | 45 | $hyphenator = new Hyphenator(); |
46 | 46 | $hyphenator->setOptions($o); |
@@ -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 | { |
@@ -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 WienerSachtextFormel4CalculatorFactory |
43 | 36 | { |