ReleasesStrategyConfiguration   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
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 22
ccs 13
cts 13
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getConfigTreeBuilder() 0 19 1
1
<?php
2
3
/*
4
 * This file is part of the Conveyor package.
5
 *
6
 * (c) Jeroen Fiege <[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 Webcreate\Conveyor\Strategy\Configuration;
13
14
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
15
use Symfony\Component\Config\Definition\ConfigurationInterface;
16
17
class ReleasesStrategyConfiguration implements ConfigurationInterface
18
{
19 1
    public function getConfigTreeBuilder()
20
    {
21 1
        $treeBuilder = new TreeBuilder();
22 1
        $rootNode = $treeBuilder->root('strategy');
23
24
        $rootNode
0 ignored issues
show
Bug introduced by
The method scalarNode() does not seem to exist on object<Symfony\Component...odeDefinitionInterface>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
25 1
            ->children()
26 1
                ->arrayNode('shared')
27 1
                    ->prototype('scalar')->end()
28 1
                ->end()
29 1
                ->scalarNode('keep')
30 1
                    ->defaultValue(5)
31 1
                    ->info('Number of releases to keep on the server')
32 1
                ->end()
33 1
            ->end()
34
        ;
35
36 1
        return $treeBuilder;
37
    }
38
}
39