for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Controllers;
use App\Application;
use Psr\Http\Message\ServerRequestInterface;
class IndexController extends BaseController
{
public function __invoke(ServerRequestInterface $req, array $params, Application $app)
return $this->createResponse('Hello world!', $app);
}
public function about(ServerRequestInterface $req, array $params, Application $app)
$req
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$params
return $this->createResponse('(about)', $app);
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.