Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Lines | 10 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
23 | View Code Duplication | public function store(Request $request) |
|
24 | { |
||
25 | $attributes = request()->validate([ |
||
26 | 'name'=>['required'], |
||
27 | ]); |
||
28 | |||
29 | $tag = Tag::findOrCreate($attributes['name']); |
||
30 | |||
31 | return redirect()->route('tags'); |
||
32 | } |
||
33 | |||
68 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.