Completed
Pull Request — master (#3)
by Pavel
03:35
created

RpcImplController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 1 Features 0
Metric Value
wmc 1
c 1
b 1
f 0
lcom 0
cbo 2
dl 0
loc 15
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testAction() 0 4 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: batanov.pavel
5
 * Date: 16.05.2016
6
 * Time: 11:46
7
 */
8
9
namespace Bankiru\Api\Rpc\Tests\Fixtures\Rpc;
10
11
use ScayTrase\Api\Rpc\RpcRequestInterface;
12
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
13
use Symfony\Component\HttpFoundation\JsonResponse;
14
15
class RpcImplController extends Controller
16
{
17
    /**
18
     * @param string              $noDefault
19
     * @param string              $default
20
     * @param array               $array
21
     * @param RpcRequestInterface $request
22
     *
23
     * @return JsonResponse
24
     */
25 3
    public function testAction($noDefault, $default = 'test', array $array, RpcRequestInterface $request)
4 ignored issues
show
Unused Code introduced by
The parameter $noDefault 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...
Unused Code introduced by
The parameter $default 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...
Unused Code introduced by
The parameter $array 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...
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 3
        return new ResponseImpl('success');
28
    }
29
}
30