GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Pull Request — 1.x (#220)
by Eric
37:59 queued 34:57
created

ProcessorCompilerPass   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 1 Features 0
Metric Value
wmc 2
c 1
b 1
f 0
lcom 0
cbo 3
dl 0
loc 18
ccs 9
cts 9
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A process() 0 12 2
1
<?php
2
3
/*
4
 * This file is part of the Hautelook\AliceBundle package.
5
 *
6
 * (c) Baldur Rensch <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Hautelook\AliceBundle\DependencyInjection\Compiler;
13
14
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
15
use Symfony\Component\DependencyInjection\ContainerBuilder;
16
use Symfony\Component\DependencyInjection\Reference;
17
18
/**
19
 * Add registered {@see Nelmio\Alice\ProcessorInterface} instances to the {@see
20
 * Hautelook\AliceBundle\Alice\ProcessorChain}.
21
 *
22
 * @author Théo FIDRY <[email protected]>
23
 */
24
final class ProcessorCompilerPass implements CompilerPassInterface
25
{
26
    /**
27
     * {@inheritdoc}
28
     */
29 6
    public function process(ContainerBuilder $container)
30
    {
31 6
        $processorChainDefinition = $container->findDefinition('hautelook_alice.alice.processor_chain');
32
33 6
        $processorsIds = $container->findTaggedServiceIds('hautelook_alice.alice.processor');
34 6
        $processors = [];
35 6
        foreach ($processorsIds as $processorId => $tags) {
36 6
            $processors[] = new Reference($processorId);
37 6
        }
38
39 6
        $processorChainDefinition->addArgument($processors);
40 6
    }
41
}
42