Completed
Push — master ( fec5e4...9d55fa )
by Vojta
01:20
created

controllers/Categories.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php namespace VojtaSvoboda\Brands\Controllers;
2
3
use BackendMenu;
4
use Backend\Classes\Controller;
5
6
/**
7
 * Categories Back-end Controller
8
 */
9 View Code Duplication
class Categories extends Controller
0 ignored issues
show
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
10
{
11
    public $implement = [
12
        'Backend\Behaviors\FormController',
13
        'Backend\Behaviors\ListController',
14
        'Backend\Behaviors\ReorderController',
15
    ];
16
17
    public $formConfig = 'config_form.yaml';
18
    public $listConfig = 'config_list.yaml';
19
    public $reorderConfig = 'config_reorder.yaml';
20
21
    public $requiredPermissions = [
22
        'vojtasvoboda.brands.categories',
23
    ];
24
25
    public function __construct()
26
    {
27
        parent::__construct();
28
29
        BackendMenu::setContext('VojtaSvoboda.Brands', 'brands', 'categories');
30
    }
31
}
32