for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace Formularium\Frontend\Bootstrap;
use Formularium\Field;
use Formularium\HTMLNode;
trait RenderableBootstrapInputTrait
{
use RenderableBootstrapTrait;
/**
* Subcall of wrapper editable()
*
* @param mixed $value
* @param Field $field
* @param HTMLNode $previous
* @return HTMLNode
*/
public function viewable($value, Field $field, HTMLNode $previous): HTMLNode
$field
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function viewable($value, /** @scrutinizer ignore-unused */ Field $field, HTMLNode $previous): HTMLNode
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
$value
public function viewable(/** @scrutinizer ignore-unused */ $value, Field $field, HTMLNode $previous): HTMLNode
return $previous;
}
public function _editable($value, Field $field, HTMLNode $previous): HTMLNode
return $this->bootstrapify($value, $field, $previous);
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.