Completed
Push — output_parsers_refactor ( 9ffc6c...755930 )
by Alessandro
09:57
created

IncompleteParser::parsingFoundResult()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 9
Code Lines 5

Duplication

Lines 9
Ratio 100 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 9
loc 9
rs 9.6666
cc 2
eloc 5
nc 2
nop 2
1
<?php
2
3
namespace Paraunit\Parser;
4
5
use Paraunit\Printer\OutputContainer;
6
use Paraunit\Process\ProcessResultInterface;
7
8
/**
9
 * Class IncompleteParser
10
 * @package Paraunit\Parser
11
 */
12
class IncompleteParser extends AbstractParser implements JSONParserChainElementInterface
13
{
14
    /**
15
     * @param OutputContainer $outputContainer
16
     */
17
    public function __construct(OutputContainer $outputContainer)
18
    {
19
        parent::__construct($outputContainer, 'incomplete', 'Incomplete Test: ');
20
    }
21
22
    /**
23
     * {@inheritdoc}
24
     */
25 View Code Duplication
    public function parsingFoundResult(ProcessResultInterface $process, \stdClass $log)
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
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