Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Completed
Push — master ( 024700...341ac6 )
by Jérémiah
04:30
created

UnionTypeDefinition   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 5

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 1
cbo 5
dl 0
loc 24
ccs 16
cts 16
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getDefinition() 0 21 1
1
<?php
2
3
/*
4
 * This file is part of the OverblogGraphQLBundle package.
5
 *
6
 * (c) Overblog <http://github.com/overblog/>
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 Overblog\GraphQLBundle\Config;
13
14
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
15
16
class UnionTypeDefinition extends TypeDefinition
17
{
18 15
    public function getDefinition()
19
    {
20 15
        $builder = new TreeBuilder();
21 15
        $node = $builder->root('_union_config');
22
23
        $node
24 15
            ->children()
25 15
                ->append($this->nameSection())
26 15
                ->arrayNode('types')
27 15
                    ->prototype('scalar')
28 15
                        ->info('One or more of object types.')
29 15
                    ->end()
30 15
                    ->isRequired()
31 15
                    ->requiresAtLeastOneElement()
32 15
                ->end()
33 15
                ->append($this->resolveTypeSection())
34 15
                ->append($this->descriptionSection())
35 15
            ->end();
36
37 15
        return $node;
38
    }
39
}
40