for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Leonidas\Library\Admin\Component\Metabox\Element;
use Leonidas\Contracts\Admin\Component\Metabox\MetaboxComponentInterface;
use Leonidas\Contracts\Ui\ViewInterface;
use Leonidas\Library\Admin\Abstracts\CanBeRestrictedTrait;
use Leonidas\Library\Admin\Abstracts\RendersWithViewTrait;
use Leonidas\Library\Admin\Component\Metabox\View\TabGroupView;
use Psr\Http\Message\ServerRequestInterface;
class TabGroup implements MetaboxComponentInterface
{
use CanBeRestrictedTrait;
use RendersWithViewTrait;
protected function defineView(ServerRequestInterface $request): ViewInterface
$request
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
protected function defineView(/** @scrutinizer ignore-unused */ ServerRequestInterface $request): ViewInterface
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
return new TabGroupView();
}
protected function defineViewContext(ServerRequestInterface $request): array
protected function defineViewContext(/** @scrutinizer ignore-unused */ ServerRequestInterface $request): array
return [];
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.