for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use App\Jobs\ApplicationBackupJob;
use Illuminate\Http\Request;
use Inertia\Inertia;
class BackupController extends Controller
{
/**
* Application Backup Landing Page
*/
public function index()
return Inertia::render('Admin/Backups');
}
* Show the form for creating a new resource.
*
* @return \Illuminate\Http\Response
public function create()
//
* Store a newly created resource in storage.
* @param \Illuminate\Http\Request $request
public function store(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 store(/** @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.
* Display the specified resource
public function show($id)
if($id === 'run')
ApplicationBackupJob::dispatch();
* Show the form for editing the specified resource.
* @param int $id
public function edit($id)
$id
public function edit(/** @scrutinizer ignore-unused */ $id)
* Update the specified resource in storage.
public function update(Request $request, $id)
public function update(/** @scrutinizer ignore-unused */ Request $request, $id)
public function update(Request $request, /** @scrutinizer ignore-unused */ $id)
* Remove the specified resource from storage.
public function destroy($id)
public function destroy(/** @scrutinizer ignore-unused */ $id)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.