Passed
Push — master ( 1a087a...e6fc71 )
by Florian
02:29
created

EventController::editAction()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
/*
4
 * This file is part of the TheAlternativeZurich/events project.
5
 *
6
 * (c) Florian Moser <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace App\Controller;
13
14
use App\Controller\Base\BaseController;
15
use App\Entity\Event;
16
use Symfony\Component\HttpFoundation\Response;
17
use Symfony\Component\Routing\Annotation\Route;
18
19
/**
20
 * @Route("/event")
21
 */
22
class EventController extends BaseController
23
{
24
    /**
25
     * @Route("/{event}", name="event")
26
     *
27
     * @return Response
28
     */
29
    public function eventAction(Event $event)
0 ignored issues
show
Unused Code introduced by
The parameter $event 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

29
    public function eventAction(/** @scrutinizer ignore-unused */ Event $event)

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...
30
    {
31
        return $this->render('index.html.twig');
32
    }
33
34
    /**
35
     * @Route("/create", name="event_create")
36
     *
37
     * @return Response
38
     */
39
    public function newAction()
40
    {
41
        return $this->render('index.html.twig');
42
    }
43
44
    /**
45
     * @Route("/{event}/update", name="event_update")
46
     *
47
     * @return Response
48
     */
49
    public function editAction(Event $event)
0 ignored issues
show
Unused Code introduced by
The parameter $event 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

49
    public function editAction(/** @scrutinizer ignore-unused */ Event $event)

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...
50
    {
51
        return $this->render('index.html.twig');
52
    }
53
}
54