for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace Modelarium\Frontend\Bootstrap\Renderable;
use Formularium\Field;
use Formularium\Renderable;
use Formularium\Frontend\Bootstrap\RenderableBootstrapTrait;
use Formularium\HTMLNode;
class Renderable_relationship extends Renderable
{
use RenderableBootstrapTrait;
public function viewable($value, Field $field, HTMLNode $previous): HTMLNode
return $previous;
}
/**
* Subcall of wrapper editable() from RenderableMaterializeTrait
*
* @param mixed $value
* @param Field $field
* @param HTMLNode $previous
* @return HTMLNode
*/
public function _editable($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 _editable($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 _editable(/** @scrutinizer ignore-unused */ $value, Field $field, HTMLNode $previous): HTMLNode
foreach ($previous->get('select') as $input) {
$input->addAttribute('class', 'custom-select');
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.