@@ -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 | } |
@@ -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); |
@@ -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 | } |
@@ -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 - |
@@ -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 | } |
@@ -37,7 +37,7 @@ |
||
| 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 | } |
@@ -37,7 +37,7 @@ |
||
| 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 | } |