DefaultController::indexAction()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace AppBundle\Controller;
4
5
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
6
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
7
use Symfony\Component\HttpFoundation\Response;
8
9
/** {@inheritDoc} */
10
class DefaultController extends Controller
11
{
12
13
    /**
14
     * @Route("/", name="index")
15
     * @return Response
16
     */
17
    public function indexAction()
18
    {
19
        return $this->redirectToRoute('nelmio_api_doc_index');
20
    }
21
}
22