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
Pull Request — master (#137)
by Jérémiah
05:56
created

SimpleMutationWithThunkFieldsMutation::mutate()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
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\Tests\Functional\App\Mutation;
13
14
class SimpleMutationWithThunkFieldsMutation
15
{
16
    private static $hasMutate = false;
17
18
    public static function hasMutate($reset = false)
19
    {
20
        $hasMutate = self::$hasMutate;
21
22
        if ($reset) {
23
            static::resetHasMutate();
24
        }
25
26
        return $hasMutate;
27
    }
28
29
    public static function resetHasMutate()
30
    {
31
        self::$hasMutate = false;
32
    }
33
34
    public function mutate($value)
35
    {
36
        self::$hasMutate = true;
37
38
        return ['result' => $value['inputData']];
39
    }
40
}
41