GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 14-26 lines in 2 locations

application/modules/page/models/Page.php 1 location

@@ 60-85 (lines=26) @@
57
    /**
58
     * @inheritdoc
59
     */
60
    public function rules()
61
    {
62
        return [
63
            [['slug', 'title'], 'required'],
64
            [['robots', 'parent_id', 'sort_order'], 'integer'],
65
            [['slug_absolute', 'published', 'searchable'], 'boolean'],
66
            [
67
                [
68
                    'content',
69
                    'title',
70
                    'h1',
71
                    'meta_description',
72
                    'breadcrumbs_label',
73
                    'announce',
74
                    'slug_compiled',
75
                    'name'
76
                ],
77
                'string'
78
            ],
79
            [['date_added', 'date_modified'], 'safe'],
80
            [['slug'], 'string', 'max' => 80],
81
            [['slug_compiled'], 'string', 'max' => 180],
82
            [['show_type', 'subdomain'], 'string'],
83
            ['sort_order', 'default', 'value' => 0],
84
        ];
85
    }
86
87
    /**
88
     * @inheritdoc

application/modules/shop/models/Category.php 1 location

@@ 146-159 (lines=14) @@
143
    /**
144
     * @inheritdoc
145
     */
146
    public function rules()
147
    {
148
        return [
149
            [['category_group_id', 'parent_id', 'name', 'slug'], 'required'],
150
            [['category_group_id', 'parent_id', 'slug_absolute', 'sort_order', 'active'], 'integer'],
151
            [['name', 'title', 'h1', 'meta_description', 'breadcrumbs_label', 'content', 'announce'], 'string'],
152
            [['slug'], 'string', 'max' => 80],
153
            [['slug_compiled'], 'string', 'max' => 180],
154
            [['title_append'], 'string'],
155
            [['active'], 'default', 'value' => 1],
156
            [['date_added', 'date_modified'], 'safe'],
157
            ['sort_order', 'default', 'value' => 0],
158
        ];
159
    }
160
161
    /**
162
     * @inheritdoc