for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Ps2alerts\Api\Controller;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Message\ResponseInterface;
use Ps2alerts\Api\Contract\TemplateAwareInterface;
use Ps2alerts\Api\Contract\TemplateAwareTrait;
class MainController implements TemplateAwareInterface
{
use TemplateAwareTrait;
/**
* Index
* @param ServerRequestInterface $request
* @param ResponseInterface $response
* @return ResponseInterface
*/
public function index(ServerRequestInterface $request, ResponseInterface $response)
$request
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$response->getBody()->write(
$this->getTemplateDriver()->render('landing.html')
);
return $response;
}
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.