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

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

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

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