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 ( cc83a8...7c2c4f )
by Jérémiah
48s
created

SimpleMutationWithThunkFieldsMutation   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 1
cbo 0
dl 0
loc 27
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A hasMutate() 0 10 2
A resetHasMutate() 0 4 1
A mutate() 0 6 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