Code Duplication    Length = 16-16 lines in 2 locations

src/base/Controller.php 1 location

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

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}