for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Forum\About;
use Anax\Commons\ContainerInjectableInterface;
use Anax\Commons\ContainerInjectableTrait;
// use Anax\Route\Exception\ForbiddenException;
// use Anax\Route\Exception\NotFoundException;
// use Anax\Route\Exception\InternalErrorException;
/**
* A sample controller to show how a controller class can be implemented.
*/
class AboutController implements ContainerInjectableInterface
{
use ContainerInjectableTrait;
* @var $data description
//private $data;
// /**
// * The initialize method is optional and will always be called before the
// * target method/action. This is a convienient method where you could
// * setup internal properties that are commonly used by several methods.
// *
// * @return void
// */
// public function initialize() : void
// {
// ;
// }
* Description.
*
* @param datatype $variable Description
$variable
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter $italy is not defined by the method finale(...).
$italy
finale(...)
/** * @param array $germany * @param array $island * @param array $italy */ function finale($germany, $island) { return "2:1"; }
The most likely cause is that the parameter was removed, but the annotation was not.
* @return object as a response object
* @throws Exception
public function indexActionGet(): object
$page = $this->di->get("page");
$page->add("forum/about", []);
return $page->render([
"title" => "About page",
]);
}
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.