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 (#7)
by Jérémiah
09:02
created

ResolveCallbackConfigSolution   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 19
ccs 11
cts 11
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A solve() 0 16 2
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\Resolver\Config;
13
14
class ResolveCallbackConfigSolution extends AbstractConfigSolution implements UniqueConfigSolutionInterface
15
{
16 26
    public function solve($value, $config = null)
0 ignored issues
show
Unused Code introduced by
The parameter $config is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
17
    {
18 26
        if (is_callable($value)) {
19 19
            return $value;
20
        }
21
22 26
        return function () use ($value) {
23 18
            $args = func_get_args();
24 18
            $result = $this->solveUsingExpressionLanguageIfNeeded(
25 18
                $value,
26 18
                call_user_func_array([$this, 'solveResolveCallbackArgs'], $args)
27 18
            );
28
29 18
            return $result;
30 26
        };
31
    }
32
}
33