Passed
Push — master ( a14240...3e537e )
by Xavier
07:17
created

UserController::classEvents()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 5
nc 1
nop 2
dl 0
loc 10
rs 10
c 0
b 0
f 0
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 App\Model\API\Klass;
13
use Symfony\Component\HttpFoundation\Request;
14
use Symfony\Component\Routing\Annotation\Route;
15
16
17
18
class UserController extends AbstractController implements AuthenticatedInterface
19
{
20
21
    /**
22
     * Shows events for a class and user given
23
     *
24
     * @Route("/classes/{id}", name="class-events")
25
     * @param Request $request
26
     * @param $id
27
     * @return \Symfony\Component\HttpFoundation\Response
28
     */
29
    public function classEvents(Request $request, $id = '')
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

29
    public function classEvents(/** @scrutinizer ignore-unused */ Request $request, $id = '')

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...
Unused Code introduced by
The parameter $id 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 classEvents(Request $request, /** @scrutinizer ignore-unused */ $id = '')

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
32
        //$events = Klass::events($id);
33
        //var_dump($events);
34
        return $this->render('User/class.twig', [
35
            'givenName' => null,
36
            'classes' => null,
37
            'events' => null,
38
            'event_activities' => null
39
        ]);
40
    }
41
42
}