Showing 13 of 13 total issues
Function resolveHelperFunction
has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring. Open
protected function resolveHelperFunction($function): callable { // Try to resolve the Helper function in this order: // // 1. callable
- Read upRead up
Similar blocks of code found in 2 locations. Consider refactoring. Open
<?php declare(strict_types=1); /*
- Read upRead up
Similar blocks of code found in 2 locations. Consider refactoring. Open
<?php declare(strict_types=1); /*
- Read upRead up
Method resolveHelperFunction
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
protected function resolveHelperFunction($function): callable { // Try to resolve the Helper function in this order: // // 1. callable
Method validateConfiguration
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
private function validateConfiguration(array $configuration): void { if (!isset($configuration['controller']) || (string)$configuration['controller'] === '') { throw new \InvalidArgumentException( \sprintf('An extbase controller must be configured for the "%s" compatibility layer.', self::TYPE),
Method getConfigTreeBuilder
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function getConfigTreeBuilder(): TreeBuilder { $treeBuilder = new TreeBuilder('handlebars'); $rootNode = $treeBuilder->getRootNode();
Similar blocks of code found in 2 locations. Consider refactoring. Open
<?php declare(strict_types=1); /*
- Read upRead up
Similar blocks of code found in 2 locations. Consider refactoring. Open
<?php declare(strict_types=1); /*
- Read upRead up
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
CacheInterface $cache, EventDispatcherInterface $eventDispatcher, TemplateResolverInterface $templateResolver, TemplateResolverInterface $partialResolver = null, array $defaultData = []
Function validateConfiguration
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
private function validateConfiguration(array $configuration): void { if (!isset($configuration['controller']) || (string)$configuration['controller'] === '') { throw new \InvalidArgumentException( \sprintf('An extbase controller must be configured for the "%s" compatibility layer.', self::TYPE),
- Read upRead up
Function resolveTemplatePath
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function resolveTemplatePath(string $templatePath): string { $filename = $templatePath; foreach (array_reverse($this->templateRootPaths) as $templateRootPath) { foreach ($this->supportedFileExtensions as $extension) {
- Read upRead up
Function process
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function process(ContainerBuilder $container): void { $container->registerForAutoconfiguration(DataProcessorInterface::class)->addTag($this->processorTagName); foreach ($container->findTaggedServiceIds($this->processorTagName) as $id => $tags) {
- Read upRead up
Avoid too many return
statements within this method. Open
return $callable;