| Conditions | 3 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function deleteRoute(): ?string |
||
| 27 | { |
||
| 28 | $type = (string)$this->request->query->get('type'); |
||
| 29 | $loader = (string)$this->request->query->get('loader'); |
||
| 30 | $source = Str::lowerCase((string)$this->request->query->get('path')); |
||
| 31 | |||
| 32 | $model = new EntityDeleteRoute($type, $loader, $source); |
||
| 33 | if ($model->send() && $model->validate()) { |
||
| 34 | $model->make(); |
||
| 35 | return $this->view->render('main/delete_route_save'); |
||
| 36 | } |
||
| 37 | |||
| 38 | return $this->view->render('main/delete_route', [ |
||
| 39 | 'model' => $model |
||
| 40 | ]); |
||
| 42 | } |