for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Controller;
use Awurth\Slim\Helper\Controller\RestController;
use Slim\Http\Request;
use Slim\Http\Response;
class AppController extends RestController
{
public function root(Request $request, Response $response)
$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 root(/** @scrutinizer ignore-unused */ Request $request, Response $response)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
return $this->ok($response, [
'security' => [
'oauth_token' => $this->relativePath('oauth_token'),
'register' => $this->relativePath('register'),
'user' => $this->relativePath('user')
]
]);
}
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.