for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace Formularium\Frontend\Materialize\Renderable;
use Formularium\Field;
use Formularium\HTMLNode;
class Renderable_text extends Renderable_string
{
public function _editable($value, Field $field, HTMLNode $previous): HTMLNode
$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 _editable(/** @scrutinizer ignore-unused */ $value, 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.
$field
public function _editable($value, /** @scrutinizer ignore-unused */ Field $field, HTMLNode $previous): HTMLNode
// add extra classes
$previous->get('textarea')[0]->setAttributes([
'class' => 'materialize-textarea',
]);
return $previous;
}
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.