for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Modules\User\Http\Controllers;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
use Illuminate\Routing\Controller;
class UserController extends Controller
{
/**
* Display a listing of the resource.
*
* @return JsonResponse
*/
public function index()
return \response()->json();
}
* Show the form for creating a new resource.
public function create()
* Store a newly created resource in storage.
* @param 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.
* Show the specified resource.
public function show()
return \response()->json(\Auth::user()->toArray());
* Update the specified resource in storage.
public function update(Request $request)
public function update(/** @scrutinizer ignore-unused */ Request $request)
* Remove the specified resource from storage.
public function destroy()
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.