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...
14
{
15
const NODE_NAME = 'guid';
16
17
/**
18
* @param NodeInterface $node
19
* @param \DOMElement $element
20
*/
21
6
public function setProperty(NodeInterface $node, \DOMElement $element) : void
22
{
23
6
$node->setPublicId($element->nodeValue);
24
6
}
25
26
/**
27
* @inheritDoc
28
*/
29
3
protected function hasValue(NodeInterface $node) : bool
30
{
31
3
return !! $node->getPublicId();
32
}
33
34
/**
35
* @inheritDoc
36
*/
37
3
protected function addElement(\DomDocument $document, \DOMElement $rootElement, NodeInterface $node) : void
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.