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

Passed
Push — master ( 6eaf22...743834 )
by Renato
56s
created

ExpressionProcessor   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 1
dl 0
loc 20
ccs 7
cts 7
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A process() 0 12 4
1
<?php
2
3
namespace Overblog\GraphQLBundle\Config\Processor;
4
5
use Symfony\Component\ExpressionLanguage\Expression;
6
7
final class ExpressionProcessor implements ProcessorInterface
8
{
9
    const DEFAULT_EXPRESSION_LANGUAGE_TRIGGER = '@=';
10
11
    /**
12
     * {@inheritdoc}
13
     */
14
    public static function process(array $configs, $expressionLanguageTrigger = self::DEFAULT_EXPRESSION_LANGUAGE_TRIGGER)
15
    {
16 25
        return array_map(function ($v) use ($expressionLanguageTrigger) {
17 25
            if (is_array($v)) {
18 25
                return static::process($v, $expressionLanguageTrigger);
19 25
            } elseif (is_string($v) && 0 === strpos($v, $expressionLanguageTrigger)) {
20 19
                return new Expression(substr($v, 2));
21
            }
22
23 25
            return $v;
24 25
        }, $configs);
25
    }
26
}
27