Passed
Pull Request — master (#9)
by Pavel
05:20
created

Test/Rpc/RpcImplController.php (4 issues)

Severity

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
namespace Bankiru\Api\Rpc\Test\Rpc;
4
5
use Bankiru\Api\Rpc\Routing\Annotation\Method;
6
use Bankiru\Api\Rpc\Test\Impl\Response;
7
use ScayTrase\Api\Rpc\RpcRequestInterface;
8
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
9
10
final class RpcImplController extends Controller
11
{
12
    /**
13
     * @param string              $noDefault
14
     * @param string              $default
15
     * @param array               $array
16
     * @param RpcRequestInterface $request
17
     *
18
     * @Method("annotation", inherit=false, context={"annotation-non-inherit"}, defaultContext=false)
19
     *
20
     * @return Response
21
     */
22 3
    public function testAction($noDefault, $default = 'test', array $array, RpcRequestInterface $request)
0 ignored issues
show
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...
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...
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...
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...
23
    {
24 3
        return new Response('success');
25
    }
26
}
27