for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Http\Controllers\Gedcom;
use App\Http\Controllers\Controller;
use App\ImportJob;
use Auth;
use Illuminate\Http\Request;
class Progress extends Controller
{
//
public function index(Request $request)
$request
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function index(/** @scrutinizer ignore-unused */ Request $request)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
$user_id = Auth::user()->id;
id
Illuminate\Contracts\Auth\Authenticatable
instanceof
$runningjob = ImportJob::orderby('id', 'DESC')->first();
$slug = null;
if ($runningjob != null) {
$slug = $runningjob->slug;
}
$ret = [];
$ret['slug'] = $slug;
$ret['user'] = $user_id;
return $ret;
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.