Code Duplication    Length = 29-29 lines in 3 locations

examples/simple/public/debugger-panel-config/index.php 1 location

@@ 19-47 (lines=29) @@
16
/**
17
 * Debugger bar panel
18
 */
19
class MyDebugBarPanel extends AbstractPanel
20
{
21
    const NAME = 'myPanel';
22
23
    protected function getDir()
24
    {
25
        return __DIR__ . '/' . $this::RESOURCES;
26
    }
27
28
    protected function getLabel()
29
    {
30
        return 'MyPanel';
31
    }
32
33
    protected function getTitle()
34
    {
35
        return 'My Debugger Bar Panel';
36
    }
37
38
    public function getTab()
39
    {
40
        return $this->createIcon('user', ['top' => '-3px']) . parent::getTab();
41
    }
42
43
    public function getPanel()
44
    {
45
        return new Html\Title('My Debugger Bar Panel Example');
46
    }
47
}
48
49
/**
50
 * Adding the Tracy

examples/simple/public/debugger-panel/index.php 1 location

@@ 18-46 (lines=29) @@
15
/**
16
 * Debugger bar panel
17
 */
18
class MyDebugBarPanel extends AbstractPanel
19
{
20
    const NAME = 'myPanel';
21
22
    protected function getDir()
23
    {
24
        return __DIR__ . '/' . $this::RESOURCES;
25
    }
26
27
    protected function getLabel()
28
    {
29
        return 'MyPanel';
30
    }
31
32
    protected function getTitle()
33
    {
34
        return 'My Debugger Bar Panel';
35
    }
36
37
    public function getTab()
38
    {
39
        return $this->createIcon('user', ['top' => '-3px']) . parent::getTab();
40
    }
41
42
    public function getPanel()
43
    {
44
        return new Html\Title('My Debugger Bar Panel Example');
45
    }
46
}
47
48
/**
49
 * Adding the Tracy

examples/simple/public/modules-debugger/index.php 1 location

@@ 61-89 (lines=29) @@
58
/**
59
 * Debugger bar panel
60
 */
61
class MyDebugBarPanel extends AbstractPanel
62
{
63
    const NAME = 'myPanel';
64
65
    protected function getDir()
66
    {
67
        return __DIR__ . '/' . $this::RESOURCES;
68
    }
69
70
    protected function getLabel()
71
    {
72
        return 'MyPanel';
73
    }
74
75
    protected function getTitle()
76
    {
77
        return 'My Debugger Bar Panel';
78
    }
79
80
    public function getTab()
81
    {
82
        return $this->createIcon('user', ['top' => '-3px']) . parent::getTab();
83
    }
84
85
    public function getPanel()
86
    {
87
        return new Html\Title('My Module Debugger Bar Panel Example');
88
    }
89
}
90
91
$config = Webino::config([
92
    /**