for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class ThreadAnswerController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
//
}
* Show the form for creating a new resource.
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.
* @param int $id
public function show($id)
$id
public function show(/** @scrutinizer ignore-unused */ $id)
* Show the form for editing the specified resource.
public function edit($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.