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

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