Code Duplication    Length = 10-10 lines in 2 locations

src/widgets/HiBox.php 2 locations

@@ 25-34 (lines=10) @@
22
    protected function initBoxTools()
23
    {
24
        parent::initBoxTools();
25
        if (!isset($this->boxTools['collapse'])) {
26
            $this->boxTools['collapse'] = [
27
                'icon' => 'fa-minus',
28
                'options' => [
29
                    'class' => 'btn-default',
30
                    'title' => Yii::t('app', 'collapse'),
31
                    'data-widget' => 'collapse',
32
                ],
33
            ];
34
        }
35
        if (!isset($this->boxTools['remove'])) {
36
            $this->boxTools['remove'] = [
37
                'icon' => 'fa-times',
@@ 35-44 (lines=10) @@
32
                ],
33
            ];
34
        }
35
        if (!isset($this->boxTools['remove'])) {
36
            $this->boxTools['remove'] = [
37
                'icon' => 'fa-times',
38
                'options' => [
39
                    'class' => 'btn-default',
40
                    'title' => Yii::t('app', 'remove'),
41
                    'data-widget' => 'remove',
42
                ],
43
            ];
44
        }
45
    }
46
47
    /**