for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Tacone\Bees\Field;
use Tacone\Bees\Attribute\ArrAttribute;
use Tacone\Bees\Attribute\JoinedArrayAttribute;
use Tacone\Bees\Attribute\ScalarAttribute;
abstract class Field
{
protected $data = [];
public function __construct($name, $label = null)
$label
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$this->name($name);
}
public function name($value = null)
$value
return ScalarAttribute::make($this, $this->data, 'name')
->handle(func_get_args());
public function value($value = null)
return ScalarAttribute::make($this, $this->data, 'value')
public function errors($value = null)
return ArrAttribute::make($this, $this->data, 'errors')
public function rules($value = null)
return JoinedArrayAttribute::make($this, $this->data, 'rules')
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.