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...
9
{
10
/**
11
* @inheritdoc
12
*/
13
64
protected function getOperatorName()
14
{
15
64
return 'and';
16
}
17
18
/**
19
* @inheritdoc
20
*/
21
3
protected function createNode(array $queries)
22
{
23
3
if (count($queries) < 2) {
24
1
throw new SyntaxErrorException(
25
1
sprintf(
26
1
'"%s" operator expects at least 2 parameters, %d given',
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.