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-21 lines in 9 locations

application/models/ErrorUrl.php 1 location

@@ 55-73 (lines=19) @@
52
     * @param $params
53
     * @return ActiveDataProvider
54
     */
55
    public function search($params)
56
    {
57
        /* @var $query \yii\db\ActiveQuery */
58
        $query = self::find();
59
        $dataProvider = new ActiveDataProvider(
60
            [
61
                'query' => $query,
62
                'pagination' => [
63
                    'pageSize' => 10,
64
                ],
65
            ]
66
        );
67
        if (!($this->load($params))) {
68
            return $dataProvider;
69
        }
70
        $query->andFilterWhere(['id' => $this->id]);
71
        $query->andFilterWhere(['url' => $this->url]);
72
        return $dataProvider;
73
    }
74
}
75

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

@@ 100-118 (lines=19) @@
97
     * @param $params
98
     * @return ActiveDataProvider
99
     */
100
    public function search($params)
101
    {
102
        /* @var $query \yii\db\ActiveQuery */
103
        $query = self::find();
104
        $dataProvider = new ActiveDataProvider(
105
            [
106
                'query' => $query,
107
                'pagination' => [
108
                    'pageSize' => 10,
109
                ],
110
            ]
111
        );
112
        if (!($this->load($params))) {
113
            return $dataProvider;
114
        }
115
        $query->andFilterWhere(['id' => $this->id]);
116
        $query->andFilterWhere(['like', 'name', $this->name]);
117
        return $dataProvider;
118
    }
119
}
120

application/modules/image/models/Watermark.php 1 location

@@ 89-107 (lines=19) @@
86
     * @param $params
87
     * @return ActiveDataProvider
88
     */
89
    public function search($params)
90
    {
91
        /** @var $query \yii\db\ActiveQuery */
92
        $query = self::find();
93
        $dataProvider = new ActiveDataProvider(
94
            [
95
                'query' => $query,
96
                'pagination' => [
97
                    'pageSize' => 10,
98
                ],
99
            ]
100
        );
101
        if (!($this->load($params))) {
102
            return $dataProvider;
103
        }
104
        $query->andFilterWhere(['id' => $this->id]);
105
        $query->andFilterWhere(['like', 'watermark_path' => $this->watermark_path]);
106
        return $dataProvider;
107
    }
108
109
    public function afterDelete()
110
    {

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

@@ 336-355 (lines=20) @@
333
     * @param $params
334
     * @return ActiveDataProvider
335
     */
336
    public function search($params)
337
    {
338
        /** @var $query \yii\db\ActiveQuery */
339
        $query = self::find();
340
341
        $dataProvider = new ActiveDataProvider(
342
            [
343
                'query' => $query,
344
                'pagination' => [
345
                    'pageSize' => 10,
346
                ],
347
            ]
348
        );
349
        if (!($this->load($params))) {
350
            return $dataProvider;
351
        }
352
        $query->andFilterWhere(['id' => $this->id]);
353
        $query->andFilterWhere(['is_deleted' => $this->is_deleted]);
354
        return $dataProvider;
355
    }
356
357
    /**
358
     * Create a new order.

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

@@ 77-95 (lines=19) @@
74
        ];
75
    }
76
77
    public function search($params)
78
    {
79
        $query = static::find();
80
        $dataProvider = new ActiveDataProvider([
81
            'query' => $query,
82
            'pagination' => [
83
                'pageSize' => 25,
84
            ],
85
        ]);
86
87
        if ($this->load($params)) {
88
            $query->andFilterWhere([
89
                'button_label' => $this->button_label,
90
                'event_name' => $this->event_name,
91
            ]);
92
        }
93
94
        return $dataProvider;
95
    }
96
97
    /**
98
     * @return OrderStage|null

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

@@ 60-79 (lines=20) @@
57
     * @param $params
58
     * @return ActiveDataProvider
59
     */
60
    public function search($params)
61
    {
62
        /** @var $query \yii\db\ActiveQuery */
63
        $query = self::find();
64
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(['addon_id' => $this->addon_id]);
78
        return $dataProvider;
79
    }
80
81
    public function getAddon()
82
    {

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

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

application/modules/image/models/ThumbnailSize.php 1 location

@@ 78-97 (lines=20) @@
75
     * @param $params
76
     * @return ActiveDataProvider
77
     */
78
    public function search($params)
79
    {
80
        /** @var $query \yii\db\ActiveQuery */
81
        $query = self::find();
82
        $dataProvider = new ActiveDataProvider(
83
            [
84
                'query' => $query,
85
                'pagination' => [
86
                    'pageSize' => 10,
87
                ],
88
            ]
89
        );
90
        if (!($this->load($params))) {
91
            return $dataProvider;
92
        }
93
        $query->andFilterWhere(['id' => $this->id]);
94
        $query->andFilterWhere(['width' => $this->width]);
95
        $query->andFilterWhere(['height' => $this->height]);
96
        return $dataProvider;
97
    }
98
99
    public static function getByDemand($demand)
100
    {

application/models/Slide.php 1 location

@@ 86-106 (lines=21) @@
83
     * @param $params
84
     * @return ActiveDataProvider
85
     */
86
    public function search($params)
87
    {
88
        /* @var $query \yii\db\ActiveQuery */
89
        $query = static::find()
90
            ->where(['slider_id' => $this->slider_id])
91
            ->orderBy('sort_order');
92
        $dataProvider = new ActiveDataProvider(
93
            [
94
                'query' => $query,
95
                'pagination' => [
96
                    'pageSize' => 100,
97
                ],
98
            ]
99
        );
100
        if (!($this->load($params))) {
101
            return $dataProvider;
102
        }
103
        return $dataProvider;
104
    }
105
106
    /**
107
     * @return \yii\db\ActiveQuery
108
     */
109
    public function getSlider()