Passed
Push — master ( c7e265...e8c097 )
by Xavier
03:54
created

HomeController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 13
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A index() 0 3 1
1
<?php
2
3
/*
4
 * @author  Xavier Chopin <[email protected]>
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
namespace App\Controller;
11
12
use Symfony\Component\Routing\Annotation\Route;
13
use Symfony\Component\HttpFoundation\Request;
14
15
class HomeController extends AbstractController
16
{
17
18
    /**
19
     * Renders the home page.
20
     *
21
     * @Route("/", name="home")
22
     * @param Request $request
23
     * @return \Symfony\Component\HttpFoundation\Response
24
     */
25
    public function index(Request $request)
0 ignored issues
show
Unused Code introduced by
The parameter $request is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

25
    public function index(/** @scrutinizer ignore-unused */ Request $request)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
26
    {
27
        return $this->render('home.twig');
28
    }
29
30
}
31