| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | public function index(Request $request) |
||
|
|
|||
| 13 | { |
||
| 14 | $user_id = Auth::user()->id; |
||
| 15 | $runningjob = ImportJob::orderby('id', 'DESC')->first(); |
||
| 16 | $slug = null; |
||
| 17 | if ($runningjob !== null) { |
||
| 18 | $slug = $runningjob->slug; |
||
| 19 | } |
||
| 20 | $ret = []; |
||
| 21 | $ret['slug'] = $slug; |
||
| 22 | $ret['user'] = $user_id; |
||
| 23 | |||
| 24 | return $ret; |
||
| 25 | } |
||
| 27 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.