ExtensionLoader   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 6
c 1
b 0
f 0
dl 0
loc 14
ccs 6
cts 6
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A load() 0 7 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Pluswerk\TypoScriptLinter;
5
6
use GrumPHP\Extension\ExtensionInterface;
7
use Symfony\Component\DependencyInjection\ContainerBuilder;
8
use Symfony\Component\DependencyInjection\Definition;
9
use Symfony\Component\DependencyInjection\Reference;
10
11
final class ExtensionLoader implements ExtensionInterface
12
{
13
    /**
14
     * @param ContainerBuilder $container
15
     *
16
     * @return Definition
17
     */
18 1
    public function load(ContainerBuilder $container): Definition
19
    {
20 1
        $container->register('linter.typoscriptlint', TypoScriptLinter::class);
21 1
        return $container->register('task.typoscriptlint', TypoScriptLint::class)
22 1
            ->addArgument(new Reference('config'))
23 1
            ->addArgument(new Reference('linter.typoscriptlint'))
24 1
            ->addTag('grumphp.task', ['config' => 'typoscriptlint']);
25
    }
26
}
27