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

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

application/models/PropertyStaticValues.php 1 location

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