EditorView   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 28
rs 10
c 0
b 0
f 0
wmc 1
lcom 1
cbo 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A editor() 0 11 1
1
<?php
2
3
namespace Rudolf\Modules\Appearance\Editor;
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