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
23:39 queued 10:37
created

ExpressionFunctionPass   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 3
dl 0
loc 15
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A process() 0 9 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