GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

YumlController::indexAction()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 23
Code Lines 16

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 16
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 23
ccs 16
cts 16
cp 1
rs 9.0856
cc 1
eloc 16
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Onurb\Bundle\YumlBundle\Controller;
4
5
use Onurb\Bundle\YumlBundle\Yuml\YumlClient;
6
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
7
8
/**
9
 * Utility to generate Yuml compatible strings from metadata graphs
10
 * Adaptation of DoctrineORMModule\Yuml\YumlController for ZendFramework-Zend-Developer-Tools
11
 *
12
 * @license MIT
13
 * @link    http://www.doctrine-project.org/
14
 * @author  Bruno Heron <[email protected]>
15
 * @author  Marco Pivetta <[email protected]>
16
 */
17
class YumlController extends Controller
18
{
19
    /**
20
     * @return \Symfony\Component\HttpFoundation\RedirectResponse
21
     */
22 1
    public function indexAction()
23
    {
24
        /** @var YumlClient $yumlClient */
25 1
        $yumlClient = $this->get('onurb_yuml.client');
26
27 1
        $showDetailParam    = $this->container->getParameter('onurb_yuml.show_fields_description');
28 1
        $colorsParam        = $this->container->getParameter('onurb_yuml.colors');
29 1
        $notesParam         = $this->container->getParameter('onurb_yuml.notes');
30 1
        $styleParam         = $this->container->getParameter('onurb_yuml.style');
31 1
        $extensionParam     = $this->container->getParameter('onurb_yuml.extension');
32 1
        $directionParam     = $this->container->getParameter('onurb_yuml.direction');
33 1
        $scale              = $this->container->getParameter('onurb_yuml.scale');
34
35 1
        return $this->redirect(
36 1
            $yumlClient->getGraphUrl(
37 1
                $yumlClient->makeDslText($showDetailParam, $colorsParam, $notesParam),
38 1
                $styleParam,
39 1
                $extensionParam,
40 1
                $directionParam,
41 1
                $scale
42
            )
43
        );
44
    }
45
}
46