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 (#265)
by Jérémiah
14:36
created

ExpressionFunctionPass::process()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 9
ccs 6
cts 6
cp 1
rs 9.6666
c 0
b 0
f 0
cc 2
eloc 5
nc 2
nop 1
crap 2
1
<?php
2
3
namespace Overblog\GraphQLBundle\DependencyInjection\Compiler;
4
5
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
6
use Symfony\Component\DependencyInjection\ContainerBuilder;
7
use Symfony\Component\DependencyInjection\Reference;
8
9
final class ExpressionFunctionPass implements CompilerPassInterface
10
{
11
    /**
12
     * {@inheritdoc}
13
     */
14 23
    public function process(ContainerBuilder $container)
15
    {
16 23
        $definition = $container->findDefinition('overblog_graphql.expression_language');
17 23
        $taggedServices = $container->findTaggedServiceIds('overblog_graphql.expression_function');
18
19 23
        foreach ($taggedServices as $id => $tags) {
20 23
            $definition->addMethodCall('addFunction', [new Reference($id)]);
21
        }
22 23
    }
23
}
24