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::loadInternal()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
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