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.
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.
Loading history...
52
{
53
$li = $this->addChild(new \hemio\html\Li);
54
$li->addChild($header);
55
$newList = new \hemio\html\Ol();
56
$li->addChild($newList);
57
return $newList;
58
}
59
60
public function isValidChild(\hemio\html\Interface_\HtmlCode $child)
61
{
62
return $child instanceof \hemio\html\Li;
63
}
64
65
/**
66
* Used by addChild, therefore has to be defined here
67
*/
68
abstract public function addChildInternal(\hemio\html\Interface_\HtmlCode $child);
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.