Code Duplication    Length = 9-11 lines in 2 locations

src/Paraunit/Parser/AbstractParser.php 1 location

@@ 48-58 (lines=11) @@
45
    /**
46
     * {@inheritdoc}
47
     */
48
    public function parsingFoundResult(ProcessResultInterface $process, \stdClass $log)
49
    {
50
        if ($log->status == $this->status) {
51
            $process->addTestResult($this->singleResultMarker);
52
            $this->outputContainer->addToOutputBuffer($process, $log->message);
53
54
            return false;
55
        }
56
57
        return true;
58
    }
59
60
    /**
61
     * @return OutputContainer

src/Paraunit/Parser/IncompleteParser.php 1 location

@@ 25-33 (lines=9) @@
22
    /**
23
     * {@inheritdoc}
24
     */
25
    public function parsingFoundResult(ProcessResultInterface $process, \stdClass $log)
26
    {
27
        if ($log->status == $this->status) {
28
            $process->addTestResult('I');
29
            $this->outputContainer->addToOutputBuffer($process, $log->message);
30
        }
31
32
        return false;
33
    }
34
}
35