| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Lines | 10 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 50 | View Code Duplication | public function update(Request $request, Tag $tag) |
|
| 51 | { |
||
| 52 | $attributes = request()->validate([ |
||
| 53 | 'name'=>['required'], |
||
| 54 | ]); |
||
| 55 | |||
| 56 | $tag->update($attributes); |
||
| 57 | |||
| 58 | return redirect()->route('tags'); |
||
| 59 | } |
||
| 60 | |||
| 68 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.