Code Duplication    Length = 13-13 lines in 2 locations

src/controllers/PurseController.php 1 location

@@ 28-40 (lines=13) @@
25
26
class PurseController extends \hipanel\base\CrudController
27
{
28
    public function behaviors()
29
    {
30
        return array_merge(parent::behaviors(), [
31
            [
32
                'class' => EasyAccessControl::class,
33
                'actions' => [
34
                    'update,update-requisite,update-contact' => 'purse.update',
35
                    'pre-generate-document,generate-monthly-document,generate-document' => 'document.generate',
36
                    '*' => 'bill.read',
37
                ],
38
            ],
39
        ]);
40
    }
41
42
    public function actions()
43
    {

src/controllers/SaleController.php 1 location

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