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...
7
{
8
/**
9
* Construct
10
*
11
* @param mixed $value
12
*/
13
public function __construct($value)
14
{
15
parent::__construct($value);
16
$this->setMinLengthFacet(1);
17
}
18
19
protected function fixValue($value)
20
{
21
foreach ($value as $v) {
22
$v->fixValue($v);
23
}
24
}
25
26
protected function isOK($value)
27
{
28
if (!is_array($value)) {
29
throw new \InvalidArgumentException(
30
"the provided value for " . __CLASS__ . " Must be an array of type xsIDREF "
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.