Code Duplication    Length = 10-28 lines in 5 locations

src/module/Dashboard/View.php 1 location

@@ 7-16 (lines=10) @@
4
5
use Rudolf\Framework\View\AdminView;
6
7
class View extends AdminView
8
{
9
    public function dashboard()
10
    {
11
        $this->pageTitle = _('Dashboard');
12
        $this->head->setTitle($this->pageTitle);
13
14
        $this->template = 'dashboard';
15
    }
16
}
17

src/module/Tools/Admin/One/DatabaseDump/View.php 1 location

@@ 7-22 (lines=16) @@
4
5
use Rudolf\Framework\View\AdminView;
6
7
class View extends AdminView
8
{
9
    /**
10
     * @param array $data
11
     */
12
    public function setData(array $data)
13
    {
14
        $this->data = $data;
15
        $this->pageTitle = _('Database dump');
16
        $this->head->setTitle($this->pageTitle);
17
18
        $this->template = 'tool-dbdump';
19
    }
20
}
21

src/module/Users/One/Admin/Profile/View.php 1 location

@@ 7-16 (lines=10) @@
4
5
use Rudolf\Framework\View\AdminView;
6
7
class View extends AdminView
8
{
9
    public function userCard()
10
    {
11
        $this->pageTitle = _('Profile');
12
        $this->head->setTitle($this->pageTitle);
13
14
        $this->template = 'profile';
15
    }
16
}
17

src/module/Appearance/One/Admin/EditorView.php 1 location

@@ 7-34 (lines=28) @@
4
5
use Rudolf\Framework\View\AdminView;
6
7
class EditorView extends AdminView
8
{
9
    /**
10
     * @var array
11
     */
12
    protected $filesList;
13
14
    /**
15
     * @var array
16
     */
17
    protected $file;
18
19
    /**
20
     * @param array $filesList
21
     * @param array $file
22
     */
23
    public function editor(array $filesList, array $file)
24
    {
25
        $this->pageTitle = _('Theme editor');
26
        $this->head->setTitle($this->pageTitle);
27
28
        $this->filesList = $filesList;
29
30
        $this->file = $file;
31
32
        $this->template = 'appearance-editor';
33
    }
34
}
35

src/module/Tools/Admin/One/DatabaseImport/View.php 1 location

@@ 7-20 (lines=14) @@
4
5
use Rudolf\Framework\View\AdminView;
6
7
class View extends AdminView
8
{
9
    /**
10
     * @param array $data
11
     */
12
    public function setData(array $data)
13
    {
14
        $this->data = $data;
15
        $this->pageTitle = _('Database import');
16
        $this->head->setTitle($this->pageTitle);
17
18
        $this->template = 'tool-dbimport';
19
    }
20
}
21