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

ValuesConfigSolution::solve()   A

Complexity

Conditions 4
Paths 2

Size

Total Lines 12
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 9
CRAP Score 4

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 12
ccs 9
cts 9
cp 1
rs 9.2
cc 4
eloc 6
nc 2
nop 2
crap 4
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 ValuesConfigSolution extends AbstractConfigSolution implements UniqueConfigSolutionInterface
15
{
16 1
    public function solve($values, $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 1
        if (!empty($values['values'])) {
19 1
            foreach ($values['values'] as $name => &$options) {
20 1
                if (isset($options['value'])) {
21 1
                    $options['value'] = $this->solveUsingExpressionLanguageIfNeeded($options['value']);
22 1
                }
23 1
            }
24 1
        }
25
26 1
        return $values;
27
    }
28
}
29