* The type xsd:ENTITIES represents a list of ENTITY values separated by whitespace. There must be at least one ENTITY in the list. Each of the ENTITY values must match the name of an unparsed entity that has been declared in a document type definition (DTD) for the instance.
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...
11
{
12
/**
13
* Construct
14
*
15
* @param mixed $value
16
*/
17
public function __construct($value)
18
{
19
parent::__construct($value);
20
$this->setMinLengthFacet(1);
21
}
22
23
protected function fixValue($value)
24
{
25
foreach ($value as $v) {
26
$v->fixValue($v);
27
}
28
}
29
30
protected function isOK($value)
31
{
32
if (!is_array($value)) {
33
throw new \InvalidArgumentException(
34
"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.