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::indexAction()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 20
Code Lines 12

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 10
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 20
ccs 10
cts 10
cp 1
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 12
nc 2
nop 1
crap 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