for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Helick\Blocks;
abstract class Block implements Contracts\Bootable, Contracts\Composable
{
use Traits\CommonDeclaration,
Traits\NestedDeclaration,
Traits\Bootable,
Traits\Composable,
Traits\Renderable;
/**
* 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.