Code Duplication    Length = 23-23 lines in 2 locations

controllers/Discounts.php 1 location

@@ 9-31 (lines=23) @@
6
/**
7
 * Discounts Back-end Controller
8
 */
9
class Discounts extends Controller
10
{
11
    public $formConfig = 'config_form.yaml';
12
13
    public $listConfig = 'config_list.yaml';
14
15
    public $implement = [
16
        'Backend.Behaviors.FormController',
17
        'Backend.Behaviors.ListController',
18
        'Owl.Behaviors.ListDelete.Behavior',
19
    ];
20
21
    public $registerPermissions = [
22
        'bedard.shop.discounts.manage',
23
    ];
24
25
    public function __construct()
26
    {
27
        parent::__construct();
28
29
        BackendMenu::setContext('Bedard.Shop', 'shop', 'discounts');
30
    }
31
}
32

controllers/Products.php 1 location

@@ 9-31 (lines=23) @@
6
/**
7
 * Products Back-end Controller.
8
 */
9
class Products extends Controller
10
{
11
    public $formConfig = 'config_form.yaml';
12
13
    public $listConfig = 'config_list.yaml';
14
15
    public $implement = [
16
        'Backend.Behaviors.FormController',
17
        'Backend.Behaviors.ListController',
18
        'Owl.Behaviors.ListDelete.Behavior',
19
    ];
20
21
    public $registerPermissions = [
22
        'bedard.shop.products.manage',
23
    ];
24
25
    public function __construct()
26
    {
27
        parent::__construct();
28
29
        BackendMenu::setContext('Bedard.Shop', 'shop', 'products');
30
    }
31
}
32