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.
Passed
Push — master ( b43f4a...009a79 )
by Mewes
10:25
created

Configuration::getConfigTreeBuilder()   B

Complexity

Conditions 1
Paths 1

Size

Total Lines 30
Code Lines 26

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 25
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 30
ccs 25
cts 25
cp 1
rs 8.8571
c 0
b 0
f 0
cc 1
eloc 26
nc 1
nop 0
crap 1
1
<?php
2
3
namespace MewesK\TwigSpreadsheetBundle\DependencyInjection;
4
5
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
6
use Symfony\Component\Config\Definition\ConfigurationInterface;
7
8
/**
9
 * Class Configuration.
10
 */
11
class Configuration implements ConfigurationInterface
12
{
13
    /**
14
     * {@inheritdoc}
15
     *
16
     * @throws \RuntimeException
17
     */
18 2
    public function getConfigTreeBuilder()
19
    {
20 2
        $treeBuilder = new TreeBuilder();
21 2
        $rootNode = $treeBuilder->root('mewes_k_twig_spreadsheet');
22
23
        $rootNode
24 2
            ->children()
25 2
                ->booleanNode('pre_calculate_formulas')
26 2
                    ->defaultTrue()
27 2
                    ->info('Disabling formula calculations can improve the performance but the resulting documents won\'t immediately show formula results in external programs.')
28 2
                ->end()
29 2
                ->arrayNode('cache')
30 2
                    ->addDefaultsIfNotSet()
31 2
                    ->children()
32 2
                        ->scalarNode('bitmap')
33 2
                            ->defaultValue('"%kernel.cache_dir%/spreadsheet/bitmap"')
34 2
                            ->cannotBeEmpty()
35 2
                            ->info('Using a bitmap cache is necessary, PhpSpreadsheet supports only local files.')
36 2
                        ->end()
37 2
                        ->scalarNode('xml')
38 2
                            ->defaultFalse()
39 2
                            ->example('"%kernel.cache_dir%/spreadsheet/xml"')
40 2
                            ->info('Using XML caching can improve memory consumption by writing data to disk. Works only for .xlsx and .ods documents.')
41 2
                        ->end()
42 2
                    ->end()
43 2
                ->end()
44 2
            ->end();
45
46 2
        return $treeBuilder;
47
    }
48
}
49