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.

RegisterFormResourcePass::process()   A
last analyzed

Complexity

Conditions 3
Paths 4

Size

Total Lines 22
Code Lines 13

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 20
CRAP Score 3

Importance

Changes 0
Metric Value
dl 0
loc 22
ccs 20
cts 20
cp 1
rs 9.2
c 0
b 0
f 0
cc 3
eloc 13
nc 4
nop 1
crap 3
1
<?php
2
3
/*
4
 * This file is part of the Ivory Google Map bundle package.
5
 *
6
 * (c) Eric GELOEN <[email protected]>
7
 *
8
 * For the full copyright and license information, please read the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Ivory\GoogleMapBundle\DependencyInjection\Compiler;
13
14
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
15
use Symfony\Component\DependencyInjection\ContainerBuilder;
16
17
/**
18
 * @author GeLo <[email protected]>
19
 */
20
class RegisterFormResourcePass implements CompilerPassInterface
21
{
22
    /**
23
     * {@inheritdoc}
24
     */
25 513
    public function process(ContainerBuilder $container)
26
    {
27 513
        if ($container->hasParameter($parameter = 'templating.helper.form.resources')) {
28 9
            $container->setParameter(
29 8
                $parameter,
30 8
                array_merge(
31 9
                    ['IvoryGoogleMapBundle:Form'],
32 9
                    $container->getParameter($parameter)
33 7
                )
34 7
            );
35 7
        }
36
37 513
        if ($container->hasParameter($parameter = 'twig.form.resources')) {
38 9
            $container->setParameter(
39 8
                $parameter,
40 8
                array_merge(
41 9
                    ['IvoryGoogleMapBundle:Form:place_autocomplete_widget.html.twig'],
42 9
                    $container->getParameter($parameter)
43 7
                )
44 7
            );
45 7
        }
46 513
    }
47
}
48