Code Duplication    Length = 16-16 lines in 2 locations

src/controllers/HipanelController.php 1 location

@@ 28-43 (lines=16) @@
25
    /**
26
     * {@inheritdoc}
27
     */
28
    public function behaviors()
29
    {
30
        return [
31
            'access' => [
32
                'class' => 'yii\filters\AccessControl',
33
                'only'  => ['index'],
34
                'rules' => [
35
                    [
36
                        'actions' => ['index'],
37
                        'allow'   => true,
38
                        'roles'   => ['@'],
39
                    ],
40
                ],
41
            ],
42
        ];
43
    }
44
45
    /**
46
     * {@inheritdoc}

src/base/Controller.php 1 location

@@ 55-70 (lines=16) @@
52
    /**
53
     * {@inheritdoc}
54
     */
55
    public function behaviors()
56
    {
57
        return [
58
            'access' => [
59
                'class' => AccessControl::className(),
60
                'only'  => ['index'],
61
                'rules' => [
62
                    [
63
                        'actions' => ['index'],
64
                        'allow'   => true,
65
                        'roles'   => ['@'],
66
                    ],
67
                ],
68
            ],
69
        ];
70
    }
71
72
    /**
73
     * @param string $submodel the submodel that will be added to the ClassName