for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace Formularium\Frontend\Buefy\Renderable;
use Formularium\Field;
use Formularium\Frontend\Buefy\RenderableBuefyInputTrait;
use Formularium\HTMLElement;
class Renderable_pagination extends \Formularium\Renderable
{
public function viewable($value, Field $field, HTMLElement $previous): HTMLElement
return $this->pagination($value, $field, $previous);
}
public function editable($value, Field $field, HTMLElement $previous): HTMLElement
/**
* @param mixed $value
* @param Field $field
* @param HTMLElement $previous
* @return HTMLElement
*/
protected function pagination($value, Field $field, HTMLElement $previous): HTMLElement
$previous
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
protected function pagination($value, Field $field, /** @scrutinizer ignore-unused */ 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.
$value
protected function pagination(/** @scrutinizer ignore-unused */ $value, Field $field, HTMLElement $previous): HTMLElement
$p = HTMLElement::factory(
'b-pagination',
[
':total' => $field->getName() . ".total",
':current.sync' => $field->getName() . ".current_page",
':per-page' => $field->getName() . ".per_page"
]
);
return $p;
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.