for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Kris\LaravelFormBuilder\Events;
use Kris\LaravelFormBuilder\Fields\FormField;
use Kris\LaravelFormBuilder\Form;
use Kris\LaravelFormBuilder\Rules;
class AfterCollectingFieldRules
{
/**
* The field instance.
*
* @var FormField
*/
protected $field;
* The field's rules.
* @var Rules
protected $rules;
* Create a new after field creation instance.
* @param Form $form
$form
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 FormField $field
* @return void
@return
Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.
Please refer to the PHP core documentation on constructors.
public function __construct(FormField $field, Rules $rules) {
$this->field = $field;
$this->rules = $rules;
}
* Return the event's field.
* @return FormField
public function getField() {
return $this->field;
* Return the event's field's rules.
* @return Rules
public function getRules() {
return $this->rules;
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.