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/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
    {

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