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 = 32-32 lines in 3 locations

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

@@ 118-149 (lines=32) @@
115
    /**
116
     * @inheritdoc
117
     */
118
    public function behaviors()
119
    {
120
        return [
121
            [
122
                'class' => HasProperties::className(),
123
            ],
124
            [
125
                'class' => ActiveRecordHelper::className(),
126
            ],
127
            [
128
                'class' => CleanRelations::className(),
129
            ],
130
            [
131
                'class' => Tree::className(),
132
                'activeAttribute' => 'published',
133
                'sortOrder' => [
134
                    'sort_order' => SORT_ASC,
135
                    'id' => SORT_ASC
136
                ],
137
            ],
138
            [
139
                'class' => TimestampBehavior::className(),
140
                'createdAtAttribute' => 'date_added',
141
                'updatedAtAttribute' => 'date_modified',
142
                'value' => new Expression('NOW()'),
143
                'attributes' => [
144
                    ActiveRecord::EVENT_BEFORE_INSERT => ['date_added'],
145
                    ActiveRecord::EVENT_BEFORE_UPDATE => ['date_modified'],
146
                ],
147
            ],
148
        ];
149
    }
150
151
152
    /**

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

@@ 181-212 (lines=32) @@
178
    /**
179
     * @inheritdoc
180
     */
181
    public function behaviors()
182
    {
183
        return [
184
            [
185
                'class' => Tree::className(),
186
                'activeAttribute' => 'active',
187
                'sortOrder' => [
188
                    'sort_order' => SORT_ASC,
189
                    'id' => SORT_ASC
190
                ],
191
            ],
192
            [
193
                'class' => HasProperties::className(),
194
            ],
195
            [
196
                'class' => ActiveRecordHelper::className(),
197
            ],
198
            [
199
                'class' => CleanRelations::className(),
200
            ],
201
            [
202
                'class' => TimestampBehavior::className(),
203
                'createdAtAttribute' => 'date_added',
204
                'updatedAtAttribute' => 'date_modified',
205
                'value' => new Expression('NOW()'),
206
                'attributes' => [
207
                    ActiveRecord::EVENT_BEFORE_INSERT => ['date_added'],
208
                    ActiveRecord::EVENT_BEFORE_UPDATE => ['date_modified'],
209
                ],
210
            ],
211
        ];
212
    }
213
214
    /**
215
     * Search products

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

@@ 88-119 (lines=32) @@
85
    /** @var FilterSets[] */
86
    private $filterSets = null;
87
88
    public function behaviors()
89
    {
90
        return [
91
            [
92
                'class' => HasProperties::className(),
93
            ],
94
            [
95
                'class' => \devgroup\TagDependencyHelper\ActiveRecordHelper::className(),
96
            ],
97
            [
98
                'class' => CleanRelations::className(),
99
            ],
100
            [
101
                'class' => Tree::className(),
102
                'activeAttribute' => 'active',
103
                'sortOrder' => [
104
                    'sort_order' => SORT_ASC,
105
                    'id' => SORT_ASC
106
                ],
107
            ],
108
            [
109
                'class' => TimestampBehavior::className(),
110
                'createdAtAttribute' => 'date_added',
111
                'updatedAtAttribute' => 'date_modified',
112
                'value' => new Expression('NOW()'),
113
                'attributes' => [
114
                    ActiveRecord::EVENT_BEFORE_INSERT => ['date_added'],
115
                    ActiveRecord::EVENT_BEFORE_UPDATE => ['date_modified'],
116
                ],
117
            ],
118
        ];
119
    }
120
121
    /**
122
     * Return delete modes list