for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Yansongda\LaravelApi\Exceptions;
class Exception extends \Exception
{
/**
* Report the exception.
*
* @return void
*/
public function report()
//
}
* Render the exception to http request.
* @param \Illuminate\Http\Request
public function render($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 render(/** @scrutinizer ignore-unused */ $request)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
return response()->json([
response
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
return /** @scrutinizer ignore-call */ response()->json([
'code' => $this->getCode(),
'message' => $this->getMessage(),
]);
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.