for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace BoneMvc\Module\Test\Controller;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Zend\Diactoros\Response\JsonResponse;
class TestApiController
{
/**
* @param ServerRequestInterface $request
* @param array $args
* @return ResponseInterface
*/
public function indexAction(ServerRequestInterface $request, array $args): ResponseInterface
$request
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$args
return new JsonResponse([
'drink' => 'grog',
'pieces' => 'of eight',
'shiver' => 'me timbers',
]);
}
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.