| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function __invoke(Request $request) |
||
| 22 | { |
||
| 23 | if ($request->hasFile('file')) { |
||
| 24 | if ($request->file('file')->isValid()) { |
||
| 25 | $request->file->storeAs('gedcom', 'file.ged'); |
||
| 26 | $this->readData($request->file); |
||
| 27 | |||
| 28 | return ['File uploaded']; |
||
| 29 | } |
||
| 30 | |||
| 31 | return ['File corrupted']; |
||
| 32 | } |
||
| 33 | |||
| 34 | return ['Not uploaded']; |
||
| 35 | } |
||
| 48 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.