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 (#234)
by Jérémiah
07:13
created

GraphiQLController   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 1
dl 0
loc 23
ccs 10
cts 10
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A indexAction() 0 20 2
1
<?php
2
3
namespace Overblog\GraphQLBundle\Controller;
4
5
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
6
7
class GraphiQLController extends Controller
8
{
9 2
    public function indexAction($schemaName = null)
10
    {
11 2
        if (null === $schemaName) {
12 1
            $endpoint = $this->generateUrl('overblog_graphql_endpoint');
13
        } else {
14 1
            $endpoint = $this->generateUrl('overblog_graphql_multiple_endpoint', ['schemaName' => $schemaName]);
15
        }
16
17 2
        return $this->render(
18 2
            $this->getParameter('overblog_graphql.graphiql_template'),
19
            [
20 2
                'endpoint' => $endpoint,
21
                'versions' => [
22 2
                    'graphiql' => $this->getParameter('overblog_graphql.versions.graphiql'),
23 2
                    'react' => $this->getParameter('overblog_graphql.versions.react'),
24 2
                    'fetch' => $this->getParameter('overblog_graphql.versions.fetch'),
25
                ],
26
            ]
27
        );
28
    }
29
}
30