app/Module/SlideShowModule.php
Method getBlock
has 88 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getBlock(Tree $tree, int $block_id, string $context, array $config = []): string
{
$request = Registry::container()->get(ServerRequestInterface::class);
$default_start = (bool) $this->getBlockSetting($block_id, 'start');
$filter_links = $this->getBlockSetting($block_id, 'filter', self::LINK_ALL);
Method editBlockConfiguration
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function editBlockConfiguration(Tree $tree, int $block_id): string
{
$filter = $this->getBlockSetting($block_id, 'filter', self::LINK_ALL);
$controls = $this->getBlockSetting($block_id, 'controls', '1');
$start = $this->getBlockSetting($block_id, 'start', '0');
Avoid too many return
statements within this method. Open
Open
return $content;
Avoid too many return
statements within this method. Open
Open
return view('modules/block-template', [
'block' => Str::kebab($this->name()),
'id' => $block_id,
'config_url' => $this->configUrl($tree, $context, $block_id),
'title' => $this->title(),
Avoid too many return
statements within this method. Open
Open
return false;