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 ( f5e6b3...c7b627 )
by Christian
02:34
created

Configuration   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 16
dl 0
loc 33
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A addPaginationSection() 0 13 1
A getConfigTreeBuilder() 0 10 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * (c) Christian Gripp <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Core23\Twig\Bridge\Symfony\DependencyInjection;
13
14
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
15
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
16
use Symfony\Component\Config\Definition\ConfigurationInterface;
17
18
final class Configuration implements ConfigurationInterface
19
{
20
    /**
21
     * {@inheritdoc}
22
     */
23
    public function getConfigTreeBuilder()
24
    {
25
        $treeBuilder = new TreeBuilder();
26
27
        /** @var ArrayNodeDefinition $node */
28
        $node = $treeBuilder->root('core23_twig');
29
30
        $this->addPaginationSection($node);
31
32
        return $treeBuilder;
33
    }
34
35
    /**
36
     * @param ArrayNodeDefinition $node
37
     */
38
    private function addPaginationSection(ArrayNodeDefinition $node): void
39
    {
40
        $node
41
            ->children()
42
                ->arrayNode('pagination')
43
                    ->addDefaultsIfNotSet()
44
                    ->children()
45
                        ->scalarNode('template')->defaultValue('@Core23TwigExtensions/Pager/pagination.html.twig')->end()
46
                        ->scalarNode('extremeLimit')->defaultValue(3)->end()
0 ignored issues
show
Bug introduced by core23
The method scalarNode() does not exist on Symfony\Component\Config...der\NodeParentInterface. It seems like you code against a sub-type of Symfony\Component\Config...der\NodeParentInterface such as Symfony\Component\Config...ion\Builder\NodeBuilder. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

46
                        ->/** @scrutinizer ignore-call */ scalarNode('extremeLimit')->defaultValue(3)->end()
Loading history...
47
                        ->scalarNode('nearbyLimit')->defaultValue(2)->end()
48
                    ->end()
49
                ->end()
50
            ->end();
51
    }
52
}
53