Code Duplication    Length = 14-14 lines in 2 locations

src/controllers/TariffController.php 1 location

@@ 27-40 (lines=14) @@
24
25
class TariffController extends \hipanel\base\CrudController
26
{
27
    public function behaviors()
28
    {
29
        return array_merge(parent::behaviors(), [
30
            'access-control' => [
31
                'class' => EasyAccessControl::class,
32
                'actions' => [
33
                    'create,import,copy' => 'plan.create',
34
                    'update'    => 'plan.update',
35
                    'delete'    => 'plan.delete',
36
                    '*'         => 'plan.read',
37
                ],
38
            ],
39
        ]);
40
    }
41
42
    public function actions()
43
    {

src/controllers/PlanController.php 1 location

@@ 30-43 (lines=14) @@
27
28
class PlanController extends CrudController
29
{
30
    public function behaviors()
31
    {
32
        return array_merge(parent::behaviors(), [
33
            [
34
                'class' => EasyAccessControl::class,
35
                'actions' => [
36
                    'create' => 'plan.create',
37
                    'update' => 'plan.update',
38
                    'templates' => 'plan.create',
39
                    '*' => 'plan.read',
40
                ],
41
            ],
42
        ]);
43
    }
44
45
    public function actions()
46
    {