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...
30
{
31
32
/**
33
* Does component have DOM Atributes
34
*
35
* If compnent is called then we return true
36
*
37
* {@inheritdoc}
38
*
39
* @return bool
40
*/
41
2
public function hasDOMAttributes(): bool
42
{
43
2
return true;
44
}
45
46
/**
47
* Initialize Component
48
*
49
* {@inheritdoc}
50
*
51
* @return bool
52
*/
53
7
public function initializeComponent(): bool
54
{
55
7
$this->setDomAttribute('look-controls');
56
7
$this->enabled();
57
7
return true;
58
}
59
60
/**
61
* look-controls enabled
62
*
63
* {@inheritdoc}
64
*
65
* @param bool $enabled
66
* @return LookControlsCMPTIF
67
*/
68
7
public function enabled(bool $enabled = true): LookControlsCMPTIF
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.