for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Bone\App\Controller;
use Bone\Controller\Controller;
use Laminas\Diactoros\Response\HtmlResponse;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
/**
* Class IndexController
*
* If you need to create a constructor, edit the package to set up automatically via dependency injection
* @package App\Controller
*/
class IndexController extends Controller
{
* @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
$body = $this->view->render('index/index');
return new HtmlResponse($body);
}
public function learnAction(ServerRequestInterface $request, array $args) : ResponseInterface
$body = $this->view->render('index/learn');
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.