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

GlobalIdFieldResolver::resolve()   A

Complexity

Conditions 3
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 3

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 7
ccs 5
cts 5
cp 1
rs 9.4285
cc 3
eloc 4
nc 1
nop 4
crap 3
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\Relay\Node;
13
14
use GraphQL\Type\Definition\ResolveInfo;
15
use Overblog\GraphQLBundle\Resolver\Resolver;
16
17
class GlobalIdFieldResolver
18
{
19 2
    public function resolve($obj, ResolveInfo $info, $idValue, $typeName)
20
    {
21 2
        return GlobalId::toGlobalId(
22 2
            !empty($typeName) ? $typeName : $info->parentType->name,
23 2
            $idValue ? $idValue : Resolver::valueFromObjectOrArray($obj, 'id')
24 2
        );
25
    }
26
}
27