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 = 19-22 lines in 5 locations

application/models/Route.php 1 location

@@ 61-80 (lines=20) @@
58
     * @param $params
59
     * @return ActiveDataProvider
60
     */
61
    public function search($params)
62
    {
63
        /* @var $query \yii\db\ActiveQuery */
64
        $query = self::find();
65
        $dataProvider = new ActiveDataProvider(
66
            [
67
                'query' => $query,
68
                'pagination' => [
69
                    'pageSize' => 10,
70
                ],
71
            ]
72
        );
73
        if (!($this->load($params))) {
74
            return $dataProvider;
75
        }
76
        $query->andFilterWhere(['id' => $this->id]);
77
        $query->andFilterWhere(['like', 'name', $this->name]);
78
        $query->andFilterWhere(['like', 'route', $this->route]);
79
        return $dataProvider;
80
    }
81
}
82

application/models/View.php 1 location

@@ 71-89 (lines=19) @@
68
     * @param $params
69
     * @return ActiveDataProvider
70
     */
71
    public function search($params)
72
    {
73
        /* @var $query \yii\db\ActiveQuery */
74
        $dataProvider = new ActiveDataProvider(
75
            [
76
                'query' => $query = self::find(),
77
                'pagination' => [
78
                    'pageSize' => 20,
79
                ],
80
            ]
81
        );
82
        if (!($this->load($params))) {
83
            return $dataProvider;
84
        }
85
        $query->andFilterWhere(['id' => $this->id]);
86
        $query->andFilterWhere(['like', 'name', $this->name]);
87
        $query->andFilterWhere(['like', 'category', $this->category]);
88
        return $dataProvider;
89
    }
90
91
    /**
92
     * @param null $id

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

@@ 83-102 (lines=20) @@
80
     * @param $params
81
     * @return ActiveDataProvider
82
     */
83
    public function search($params)
84
    {
85
        /* @var $query \yii\db\ActiveQuery */
86
        $query = self::find();
87
        $dataProvider = new ActiveDataProvider(
88
            [
89
                'query' => $query,
90
                'pagination' => [
91
                    'pageSize' => 10,
92
                ],
93
            ]
94
        );
95
        if (!($this->load($params))) {
96
            return $dataProvider;
97
        }
98
        $query->andFilterWhere(['id' => $this->id]);
99
        $query->andFilterWhere(['like', 'name', $this->name]);
100
        $query->andFilterWhere(['like', 'class_name', $this->iso_code]);
101
        return $dataProvider;
102
    }
103
}
104

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

@@ 205-226 (lines=22) @@
202
     * @param $params
203
     * @return ActiveDataProvider
204
     */
205
    public function search($params)
206
    {
207
        /* @var $query \yii\db\ActiveQuery */
208
        $query = static::find();
209
        $dataProvider = new ActiveDataProvider(
210
            [
211
                'query' => $query,
212
                'pagination' => [
213
                    'pageSize' => 10,
214
                ],
215
            ]
216
        );
217
        if (!($this->load($params))) {
218
            return $dataProvider;
219
        }
220
        $query->andFilterWhere(['id' => $this->id]);
221
        $query->andFilterWhere(['like', 'name', $this->name]);
222
        $query->andFilterWhere(['like', 'appliance', $this->appliance]);
223
224
225
        return $dataProvider;
226
    }
227
}
228

application/modules/core/models/Wysiwyg.php 1 location

@@ 82-101 (lines=20) @@
79
     * @param $params
80
     * @return ActiveDataProvider
81
     */
82
    public function search($params)
83
    {
84
        /* @var $query \yii\db\ActiveQuery */
85
        $query = static::find();
86
        $dataProvider = new ActiveDataProvider(
87
            [
88
                'query' => $query,
89
                'pagination' => [
90
                    'pageSize' => 100,
91
                ],
92
            ]
93
        );
94
        if (!($this->load($params))) {
95
            return $dataProvider;
96
        }
97
        $query->andFilterWhere(['id' => $this->id]);
98
        $query->andFilterWhere(['like', 'name', $this->name]);
99
        $query->andFilterWhere(['like', 'class_name', $this->class_name]);
100
        return $dataProvider;
101
    }
102
103
    /**
104
     * Returns class name and params of widget for specified wysiwyg record id