Code Duplication    Length = 15-15 lines in 2 locations

src/controllers/BillController.php 1 location

@@ 49-63 (lines=15) @@
46
        $this->billTypesProvider = $billTypesProvider;
47
    }
48
49
    public function behaviors()
50
    {
51
        return array_merge(parent::behaviors(), [
52
            'access-bill' => [
53
                'class' => EasyAccessControl::class,
54
                'actions' => [
55
                    'create,import,copy'    => 'bill.create',
56
                    'create-exchange'       => 'bill.create',
57
                    'update,charge-delete'  => 'bill.update',
58
                    'delete'                => 'bill.delete',
59
                    '*'                     => 'bill.read',
60
                ],
61
            ],
62
        ]);
63
    }
64
65
    public function actions()
66
    {

src/controllers/PriceController.php 1 location

@@ 39-53 (lines=15) @@
36
 */
37
class PriceController extends CrudController
38
{
39
    public function behaviors()
40
    {
41
        return array_merge(parent::behaviors(), [
42
            [
43
                'class' => EasyAccessControl::class,
44
                'actions' => [
45
                    'create' => 'price.create',
46
                    'update' => 'price.update',
47
                    'delete' => 'price.delete',
48
                    'create-suggested' => 'price.update',
49
                    '*' => ['plan.read', 'price.read'],
50
                ],
51
            ],
52
        ]);
53
    }
54
55
    public function actions()
56
    {