| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace Arcanesoft\Seo\Http\Requests\Admin\Redirects; |
||
| 31 | public function rules() |
||
| 32 | { |
||
| 33 | $redirect = $this->route('seo_redirect'); |
||
| 34 | |||
| 35 | return [ |
||
| 36 | 'old_url' => ['required', 'string', $this->getOldUrlRule()->ignore($redirect->id)], |
||
| 37 | 'new_url' => ['required', 'string'], |
||
| 38 | 'status' => $this->getStatusRule(), |
||
| 39 | ]; |
||
| 40 | } |
||
| 41 | } |
||
| 42 |