Completed
Push — master ( ded6c3...cc2029 )
by Marcel
03:46
created

DefaultController::indexAction()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
namespace AppBundle\Controller;
4
5
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
6
use Symfony\Component\HttpFoundation\RedirectResponse;
7
use Sensio\Bundle\FrameworkExtraBundle\Configuration as Sensio;
8
9
/**
10
 * Class DefaultController
11
 *
12
 * @package AppBundle\Controller
13
 */
14
class DefaultController extends Controller
15
{
16
    /**
17
     * @SENSIO\Route("/")
18
     *
19
     * @return RedirectResponse
20
     */
21
    public function indexAction()
22
    {
23
        return $this->redirectToRoute('nelmio_api_doc_index');
24
    }
25
}