for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Helick\Blocks;
use Helick\Contracts\Bootable;
abstract class Block implements Bootable
{
use Traits\NestedDeclaration,
Traits\Bootable,
Traits\Composable,
Traits\Renderable;
/**
* The block's display name.
*
* @var string
*/
protected $name = '';
* The block's description.
protected $description = '';
* The block's icon.
protected $icon = 'star-empty';
* The block's category.
protected $category = '';
* The block's keywords.
* @var string[]
protected $keywords = [];
* The block's preview mode.
* @var bool
protected $preview = true;
* The block's template(s).
* @var string|string[]
protected $template = '';
* Fields to be attached to the block.
* @return array
public function fields(): array
return [];
}
* Data to be passed to the rendered block.
* @param array $fields
public function with(array $fields): array
$fields
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function with(/** @scrutinizer ignore-unused */ array $fields): array
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.