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

PluralResolver   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 9 1
1
<?php
2
3
namespace Overblog\GraphQLBundle\Tests\Functional\App\Resolver;
4
5
use GraphQL\Type\Definition\ResolveInfo;
6
7
class PluralResolver
8
{
9
    public function __invoke($username, ResolveInfo $info)
10
    {
11
        $lang = $info->rootValue['lang'];
12
13
        return [
14
            'username' => $username,
15
            'url' => sprintf('www.facebook.com/%s?lang=%s', $username, $lang),
16
        ];
17
    }
18
}
19