for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* User: delboy1978uk
* Date: 04/12/2016
* Time: 22:33
*/
namespace Del\Form\Renderer\Field;
use Del\Form\Field\FieldInterface;
use DOMElement;
class RadioRender extends AbstractFieldRender implements FieldRendererInterface
{
* @param FieldInterface $field
* @param DOMElement $fieldBlock
$fieldBlock
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.
* @param DOMElement $labelBlock
$labelBlock
* @param DOMElement $element
* @param DOMElement|null $errorBlock
$errorBlock
* @return DOMElement
public function renderBlock(FieldInterface $field, DOMElement $element)
/*
* @todo take form renderer arg instead of field
* @todo getters setters for error label etc in form renderer abstract
return $element;
}
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.