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
Push — master ( fd551c...0e9a28 )
by Mewes
15:42 queued 08:25
created

MewesKTwigSpreadsheetExtension   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 4
dl 0
loc 17
ccs 6
cts 6
cp 1
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 MewesK\TwigSpreadsheetBundle\DependencyInjection;
4
5
use Symfony\Component\Config\FileLocator;
6
use Symfony\Component\DependencyInjection\ContainerBuilder;
7
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
8
use Symfony\Component\HttpKernel\DependencyInjection\ConfigurableExtension;
9
10
/**
11
 * Class MewesKTwigSpreadsheetExtension.
12
 */
13
class MewesKTwigSpreadsheetExtension extends ConfigurableExtension
14
{
15
    /**
16
     * @param array            $mergedConfig
17
     * @param ContainerBuilder $container
18
     *
19
     * @throws \Exception
20
     */
21 2
    protected function loadInternal(array $mergedConfig, ContainerBuilder $container)
22
    {
23 2
        $loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
24 2
        $loader->load('services.yml');
25
26 2
        $container->setParameter('mewes_k_twig_spreadsheet.pre_calculate_formulas', $mergedConfig['pre_calculate_formulas']);
27 2
        $container->setParameter('mewes_k_twig_spreadsheet.disk_caching_directory', $mergedConfig['disk_caching_directory']);
28 2
    }
29
}
30