Completed
Pull Request — master (#3)
by Pavel
09:01
created

RpcImplController::testAction()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 4
crap 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