TemplateHooksBundle   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 9
rs 10
c 0
b 0
f 0
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A getContainerExtension() 0 7 2
1
<?php
2
3
namespace Braunstetter\TemplateHooks;
4
5
use Braunstetter\TemplateHooks\DependencyInjection\TemplateHooksExtension;
6
use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
7
use Symfony\Component\HttpKernel\Bundle\Bundle;
8
9
class TemplateHooksBundle extends Bundle
10
{
11
    public function getContainerExtension(): bool|TemplateHooksExtension|ExtensionInterface|null
0 ignored issues
show
Bug introduced by
The type Braunstetter\TemplateHooks\null was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
12
    {
13
        if (null === $this->extension) {
14
            $this->extension = new TemplateHooksExtension();
15
        }
16
17
        return $this->extension;
18
    }
19
}