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...
8
{
9
public function setTitle($title){
10
return $this->setProperty('title',$title);
11
}
12
13
public function setHeader(Header $header){
14
return $this->setProperty('header',$header);
15
}
16
17
public function addTool(Tool $tool){
18
return $this->add('tools',$tool);
19
}
20
21
public function addDockedItem($dockedItem){
22
return $this->add('dockedItems',$dockedItem);
23
}
24
25
public function setDockedItems(array $dockedItems){
26
foreach($dockedItems as $dockedItem){
27
$this->addDockedItem($dockedItem);
28
}
29
return $this;
30
}
31
32
33
/**
34
* True to make the panel collapsible and have an expand/collapse toggle Tool added into the header tool button area.
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.