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
Pull Request — master (#40)
by Jérémiah
13:22
created

UnionTypeDefinition::getDefinition()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 21
Code Lines 17

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 16
CRAP Score 1

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 0
loc 21
ccs 16
cts 16
cp 1
rs 9.3142
cc 1
eloc 17
nc 1
nop 0
crap 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