This class 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...
13
{
14
const ERROR_STATUS = 'PARSER_ERROR';
15
16
/** @var Parser */
17
private $parser;
18
19
/** @var string */
20
private $lastError;
21
22
23
24
/**
25
* @param Parser $parser
26
*/
27
public function __construct(Parser $parser)
28
{
29
$this->parser = $parser;
30
}
31
32
33
34
/**
35
* @param Candidate $candidate
36
* @return bool True / False based on the fact if check is met or not
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.