EditorController   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A actions() 0 8 1
1
<?php
2
/**
3
 * @link http://www.writesdown.com/
4
 * @copyright Copyright (c) 2015 WritesDown
5
 * @license http://www.writesdown.com/license/
6
 */
7
8
namespace backend\controllers;
9
10
use codezeen\yii2\tinymce\TinyMceCompressorAction;
11
use yii\web\Controller;
12
13
/**
14
 * Class EditorController, used by editor.
15
 *
16
 * @author Agiel K. Saputra <[email protected]>
17
 * @since 0.3.0
18
 */
19
class EditorController extends Controller
20
{
21
    /**
22
     * @inheritdoc
23
     */
24
    public function actions()
25
    {
26
        return [
27
            'compressor' => [
28
                'class' => TinyMceCompressorAction::className(),
29
            ],
30
        ];
31
    }
32
}
33