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 = 20-24 lines in 2 locations

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

@@ 211-234 (lines=24) @@
208
     * @param $params
209
     * @return ActiveDataProvider
210
     */
211
    public function search($params)
212
    {
213
        /* @var $query \yii\db\ActiveQuery */
214
        $query = self::find();
215
        $dataProvider = new ActiveDataProvider(
216
            [
217
                'query' => $query,
218
                'pagination' => [
219
                    'pageSize' => 10,
220
                ],
221
            ]
222
        );
223
        if (!($this->load($params))) {
224
            return $dataProvider;
225
        }
226
        $query->andFilterWhere(['id' => $this->id]);
227
        $query->andFilterWhere(['like', 'name', $this->name]);
228
        $query->andFilterWhere(['like', 'iso_code', $this->iso_code]);
229
        $query->andFilterWhere(['is_main' => $this->is_main]);
230
        $query->andFilterWhere(['currency_rate_provider_id' => $this->currency_rate_provider_id]);
231
232
233
        return $dataProvider;
234
    }
235
236
    /**
237
     * Returns \yii\i18n\Formatter instance for current Currency instance

application/models/PropertyStaticValues.php 1 location

@@ 104-123 (lines=20) @@
101
     * @param $params
102
     * @return ActiveDataProvider
103
     */
104
    public function search($params)
105
    {
106
        $query = static::find()->where(['property_id' => $this->property_id]);
107
        $dataProvider = new ActiveDataProvider(
108
            [
109
                'query' => $query,
110
                'pagination' => [
111
                    'pageSize' => 10,
112
                ],
113
            ]
114
        );
115
        if (!($this->load($params))) {
116
            return $dataProvider;
117
        }
118
        $query->andFilterWhere(['id' => $this->id]);
119
        $query->andFilterWhere(['like', 'name', $this->name]);
120
        $query->andFilterWhere(['like', 'value', $this->value]);
121
        $query->andFilterWhere(['like', 'slug', $this->slug]);
122
        return $dataProvider;
123
    }
124
125
    public function getProperty()
126
    {