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
04:38
created

GraphiQLController::indexAction()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 20
Code Lines 12

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 0
Metric Value
dl 0
loc 20
ccs 0
cts 19
cp 0
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 12
nc 2
nop 1
crap 6
1
<?php
2
3
namespace Overblog\GraphQLBundle\Controller;
4
5
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
6
7
class GraphiQLController extends Controller
8
{
9
    public function indexAction($schemaName = null)
10
    {
11
        if (null === $schemaName) {
12
            $endpoint = $this->generateUrl('overblog_graphql_endpoint');
13
        } else {
14
            $endpoint = $this->generateUrl('overblog_graphql_multiple_endpoint', ['schemaName' => $schemaName]);
15
        }
16
17
        return $this->render(
18
            $this->getParameter('overblog_graphql.graphiql_template'),
19
            [
20
                'endpoint' => $endpoint,
21
                'versions' => [
22
                    'graphiql' => $this->getParameter('overblog_graphql.versions.graphiql'),
23
                    'react' => $this->getParameter('overblog_graphql.versions.react'),
24
                    'fetch' => $this->getParameter('overblog_graphql.versions.fetch'),
25
                ],
26
            ]
27
        );
28
    }
29
}
30