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...
16
{
17
2
protected function getAllowedAttributes()
18
{
19
$colAllowedAttributes = array(
20
2
'/^span$/i' => Attribute::INT,
21
2
);
22
23
2
return array_merge(
24
2
$colAllowedAttributes,
25
2
parent::getAllowedAttributes()
26
2
);
27
}
28
29
2
protected function removeInvalidSelf(LoggerInterface $logger)
30
{
31
// "colgroup" must be parent.
32
2
$parent = $this->getParent();
33
2
if ($parent !== null && !$parent instanceof Colgroup) {
34
1
$logger->debug('Removing ' . $this . '. Must be a child of the "colgroup" element.');
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.