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.
Since Limoncello\Validation\Ru...omparisons\ScalarEquals is declared final, using late-static binding will have no effect. You might want to replace static with self instead.
Late static binding only has effect in subclasses.
A final class cannot be extended anymore so late static binding cannot occurr.
Consider replacing static:: with self::.
To learn more about late static binding, please refer to the PHP core
documentation.
Loading history...
38
3
parent::__construct(
39
3
$value,
40
3
ErrorCodes::SCALAR_EQUALS,
41
3
Messages::SCALAR_EQUALS,
42
3
[$value]
43
);
44
}
45
46
/**
47
* @inheritdoc
48
*/
49
3
public static function compare($value, ContextInterface $context): bool
Since Limoncello\Validation\Ru...omparisons\ScalarEquals is declared final, using late-static binding will have no effect. You might want to replace static with self instead.
Late static binding only has effect in subclasses.
A final class cannot be extended anymore so late static binding cannot occurr.
Consider replacing static:: with self::.
To learn more about late static binding, please refer to the PHP core
documentation.
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.