Code Duplication    Length = 10-10 lines in 2 locations

src/Service/WienerSachtextFormel3CalculatorFactory.php 1 location

@@ 42-51 (lines=10) @@
39
use Org_Heigl\TextStatistics\Calculator\WordsWithNSyllablesPercentCalculator;
40
use Org_Heigl\TextStatistics\Util\SyllableFilter;
41
42
class WienerSachtextFormel3CalculatorFactory
43
{
44
    public static function getCalculator()
45
    {
46
        return new WienerSachtextFormel1Calculator(
47
            new WordsWithNSyllablesPercentCalculator(WordsWithNSyllablesCounterFactory::getCalculator('de_DE', 3), new WordCounter()),
48
            new AverageSentenceLengthCalculator(new WordCounter(), new SentenceCounter())
49
        );
50
    }
51
}
52

src/Service/WienerSachtextFormel4CalculatorFactory.php 1 location

@@ 42-51 (lines=10) @@
39
use Org_Heigl\TextStatistics\Calculator\WordsWithNSyllablesPercentCalculator;
40
use Org_Heigl\TextStatistics\Util\SyllableFilter;
41
42
class WienerSachtextFormel4CalculatorFactory
43
{
44
    public static function getCalculator()
45
    {
46
        return new WienerSachtextFormel1Calculator(
47
            new WordsWithNSyllablesPercentCalculator(WordsWithNSyllablesCounterFactory::getCalculator('de_DE', 3), new WordCounter()),
48
            new AverageSentenceLengthCalculator(new WordCounter(), new SentenceCounter())
49
        );
50
    }
51
}
52