Completed
Pull Request — master (#7)
by John
02:22
created

TestController   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 2
Bugs 2 Features 0
Metric Value
wmc 3
c 2
b 2
f 0
lcom 0
cbo 1
dl 0
loc 35
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A secureAction() 0 4 1
A securedWithSecretLoaderAction() 0 4 1
A unsecureAction() 0 4 1
1
<?php
2
/*
3
 * This file is part of the KleijnWeb\JwtBundle package.
4
 *
5
 * For the full copyright and license information, please view the LICENSE
6
 * file that was distributed with this source code.
7
 */
8
9
namespace KleijnWeb\JwtBundle\Tests\Functional\App\Controller;
10
11
use Symfony\Component\HttpFoundation\Request;
12
use Symfony\Component\HttpFoundation\Response;
13
14
/**
15
 * @author John Kleijn <[email protected]>
16
 */
17
class TestController
18
{
19
    /**
20
     * @SuppressWarnings(PHPMD.UnusedFormalParameter)
21
     * @param Request $request
22
     *
23
     * @return Response
24
     */
25
    public function secureAction(Request $request)
0 ignored issues
show
Unused Code introduced by
The parameter $request is not used and could be removed.

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

Loading history...
26
    {
27
        return new Response('SECURED CONTENT');
28
    }
29
30
    /**
31
     * @SuppressWarnings(PHPMD.UnusedFormalParameter)
32
     * @param Request $request
33
     *
34
     * @return Response
35
     */
36
    public function securedWithSecretLoaderAction(Request $request)
0 ignored issues
show
Unused Code introduced by
The parameter $request is not used and could be removed.

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

Loading history...
37
    {
38
        return new Response('CONTENT SECURED WITH SECRET LOADER');
39
    }
40
41
    /**
42
     * @SuppressWarnings(PHPMD.UnusedFormalParameter)
43
     * @param Request $request
44
     *
45
     * @return Response
46
     */
47
    public function unsecureAction(Request $request)
0 ignored issues
show
Unused Code introduced by
The parameter $request is not used and could be removed.

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

Loading history...
48
    {
49
        return new Response('UNSECURED CONTENT');
50
    }
51
}
52