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 (#137)
by Jérémiah
05:30
created

ConfigExpressionProvider::getFunctions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 20
Code Lines 17

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 11
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 20
rs 9.4285
c 0
b 0
f 0
ccs 11
cts 11
cp 1
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\ExpressionLanguage;
13
14
use Overblog\GraphQLBundle\ExpressionLanguage\ExpressionFunction\DependencyInjection\Parameter;
15
use Overblog\GraphQLBundle\ExpressionLanguage\ExpressionFunction\DependencyInjection\Service;
16
use Overblog\GraphQLBundle\ExpressionLanguage\ExpressionFunction\GraphQL\IsTypeOf;
17
use Overblog\GraphQLBundle\ExpressionLanguage\ExpressionFunction\GraphQL\Mutation;
18
use Overblog\GraphQLBundle\ExpressionLanguage\ExpressionFunction\GraphQL\Relay\FromGlobalID;
19
use Overblog\GraphQLBundle\ExpressionLanguage\ExpressionFunction\GraphQL\Relay\GlobalID as GlobalIDFunction;
20 28
use Overblog\GraphQLBundle\ExpressionLanguage\ExpressionFunction\GraphQL\Relay\IdFetcherCallback;
21
use Overblog\GraphQLBundle\ExpressionLanguage\ExpressionFunction\GraphQL\Relay\MutateAndGetPayloadCallback;
22
use Overblog\GraphQLBundle\ExpressionLanguage\ExpressionFunction\GraphQL\Relay\ResolveSingleInputCallback;
23 28
use Overblog\GraphQLBundle\ExpressionLanguage\ExpressionFunction\GraphQL\Resolver;
24 28
use Overblog\GraphQLBundle\ExpressionLanguage\ExpressionFunction\NewObject;
25
use Symfony\Component\ExpressionLanguage\ExpressionFunctionProviderInterface;
26 3
27
class ConfigExpressionProvider implements ExpressionFunctionProviderInterface
28 28
{
29
    public function getFunctions()
30 28
    {
31 28
        return [
32
            new Service(),
33 1
            new Service('serv'),
34
            new Parameter(),
35 28
            new Parameter('param'),
36
            new IsTypeOf(),
37 28
            new Resolver(),
38 28
            new Resolver('res'),
39
            new Mutation(),
40 1
            new Mutation('mut'),
41
            new MutateAndGetPayloadCallback(),
42 28
            new IdFetcherCallback(),
43
            new ResolveSingleInputCallback(),
44 28
            new GlobalIDFunction(),
45 28
            new FromGlobalID(),
46
            new NewObject(),
47 8
        ];
48
    }
49
}
50