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

application/modules/shop/controllers/BackendWarehouseController.php 3 locations

@@ 136-142 (lines=7) @@
133
            $wareHouseOpeningHours = new WarehouseOpeninghours();
134
        }
135
        $wareHouseOpeningHours->loadDefaultValues();
136
        if (Yii::$app->request->post('WarehouseOpeninghours') && !$model->isNewRecord) {
137
            $wareHouseOpeningHours->load(Yii::$app->request->post());
138
            $wareHouseOpeningHours->warehouse_id = $model->id;
139
            if ($wareHouseOpeningHours->save()) {
140
                $this->refresh();
141
            }
142
        }
143
144
        $warehousePhone = new WarehousePhone();
145
@@ 146-154 (lines=9) @@
143
144
        $warehousePhone = new WarehousePhone();
145
146
        if (Yii::$app->request->post('WarehousePhone') && !$model->isNewRecord) {
147
            $warehousePhone->loadDefaultValues();
148
            $warehousePhone->load(Yii::$app->request->post());
149
            $warehousePhone->warehouse_id = $model->id;
150
            if ($warehousePhone->save()) {
151
                $this->refresh();
152
            }
153
154
        }
155
        $warehousePhoneProvider = new ActiveDataProvider([
156
            'query' => $warehousePhone::find()->where(['warehouse_id' => $model->id]),
157
            'pagination' => [
@@ 164-172 (lines=9) @@
161
162
163
        $warehouseEmail = new WarehouseEmail();
164
        if (Yii::$app->request->post('WarehouseEmail') && !$model->isNewRecord) {
165
            $warehouseEmail->loadDefaultValues();
166
            $warehouseEmail->load(Yii::$app->request->post());
167
            $warehouseEmail->warehouse_id = $model->id;
168
            if ($warehouseEmail->save()) {
169
                $this->refresh();
170
            }
171
172
        }
173
        $warehouseEmailProvider = new ActiveDataProvider([
174
            'query' => $warehouseEmail::find()->where(['warehouse_id' => $model->id]),
175
            'pagination' => [