Code Duplication    Length = 11-11 lines in 2 locations

src/Paraunit/Printer/FailuresPrinter.php 1 location

@@ 20-30 (lines=11) @@
17
    /**
18
     * @param EngineEvent $engineEvent
19
     */
20
    public function onEngineEnd(EngineEvent $engineEvent)
21
    {
22
        $this->output = $engineEvent->getOutputInterface();
23
        /** @var \DateInterval $elapsedTime */
24
25
        foreach ($this->logParser->getParsersForPrinting() as $parser) {
26
            if ($parser instanceof TestResultContainer) {
27
                $this->printFailuresOutput($parser);
28
            }
29
        }
30
    }
31
32
    /**
33
     * @param TestResultContainer $testResultContainer

src/Paraunit/Printer/FilesRecapPrinter.php 1 location

@@ 17-27 (lines=11) @@
14
    /**
15
     * @param EngineEvent $engineEvent
16
     */
17
    public function onEngineEnd(EngineEvent $engineEvent)
18
    {
19
        $this->output = $engineEvent->getOutputInterface();
20
        /** @var \DateInterval $elapsedTime */
21
22
        foreach ($this->logParser->getParsersForPrinting() as $parser) {
23
            if ($parser instanceof TestResultContainer) {
24
                $this->printFileRecap($parser);
25
            }
26
        }
27
    }
28
29
    /**
30
     * @param TestResultContainer $testResultContainer