Code Duplication    Length = 10-16 lines in 4 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
     * Set articles data.
11
     * 
12
     * @param array $data
13
     */
14
    public function setData($data)
15
    {
16
        $this->data = $data;
17
        $this->pageTitle = _('Database dump');
18
        $this->head->setTitle($this->pageTitle);
19
20
        $this->template = 'tool-dbdump';
21
    }
22
}
23

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-20 (lines=14) @@
4
5
use Rudolf\Framework\View\AdminView;
6
7
class EditorView extends AdminView
8
{
9
    public function editor(array $filesList, array $file)
10
    {
11
        $this->pageTitle = _('Theme editor');
12
        $this->head->setTitle($this->pageTitle);
13
14
        $this->filesList = $filesList;
15
16
        $this->file = $file;
17
18
        $this->template = 'appearance-editor';
19
    }
20
}
21