Code Duplication    Length = 14-14 lines in 2 locations

src/controllers/TariffController.php 1 location

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

src/controllers/TariffProfileController.php 1 location

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