for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace Formularium\Frontend\Blade;
use Formularium\Field;
use Formularium\HTMLElement;
trait RenderableBladeTrait
{
public function viewable($value, Field $field, HTMLElement $previous): HTMLElement
$value
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(/** @scrutinizer ignore-unused */ $value, Field $field, HTMLElement $previous): HTMLElement
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
foreach ($previous->get('formularium-value') as $input) {
$input->setContent("{{Request::input('" . $field->getName() . "')}}");
}
return $previous;
public function editable($value, Field $field, HTMLElement $previous): HTMLElement
public function editable(/** @scrutinizer ignore-unused */ $value, Field $field, HTMLElement $previous): HTMLElement
foreach ($previous->get('input') as $input) {
$input->setAttribute('value', "{{Request::input('" . $field->getName() . "')}}");
foreach ($previous->get('textarea') as $textarea) {
$input
foreach
20
foreach ($previous->get('select') as $input) {
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.