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.
Test Setup Failed
Push — master ( 78f8b7...0f754d )
by Elemér
04:15
created

ErelkeTwigSpreadsheetExtension   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 5

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 5
dl 0
loc 16
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A loadInternal() 0 8 1
1
<?php
2
3
namespace Erelke\TwigSpreadsheetBundle\DependencyInjection;
4
5
use Exception;
6
use Symfony\Component\Config\FileLocator;
7
use Symfony\Component\DependencyInjection\ContainerBuilder;
8
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
9
use Symfony\Component\HttpKernel\DependencyInjection\ConfigurableExtension;
10
11
/**
12
 * Class ErelkeTwigSpreadsheetExtension.
13
 */
14
class ErelkeTwigSpreadsheetExtension extends ConfigurableExtension
15
{
16
    /**
17
     * {@inheritdoc}
18
     *
19
     * @throws Exception
20
     */
21
    protected function loadInternal(array $mergedConfig, ContainerBuilder $container)
22
    {
23
        $loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
24
        $loader->load('services.yml');
25
26
        $definition = $container->getDefinition('erelke_twig_spreadsheet.twig_spreadsheet_extension');
27
        $definition->replaceArgument(0, $mergedConfig);
28
    }
29
}
30