for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the "Kata 1" package.
*
* Copyright (c) Daniel González
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
* @author Daniel González <[email protected]>
*/
namespace App\Controller;
use Component\Http\Request;
use Component\Http\Response;
/**
* PageController.
class PageController extends AppController
{
* @param Request $request
* @param array $parameters
* @return Response
public function indexAction(Request $request, array $parameters)
$request
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
return $this->render(
'Page\\index.html.twig',
[
'name' => 'Page '.$parameters['page'],
]
);
}
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.