Completed
Push — dev-master ( 1290b8...c91af7 )
by Derek Stephen
07:37
created

TestApiController::indexAction()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace BoneMvc\Module\Test\Controller;
6
7
use Psr\Http\Message\ResponseInterface;
8
use Psr\Http\Message\ServerRequestInterface;
9
use Zend\Diactoros\Response\JsonResponse;
10
11
class TestApiController
12
{
13
    /**
14
     * @param ServerRequestInterface $request
15
     * @param array $args
16
     * @return ResponseInterface
17
     */
18
    public function indexAction(ServerRequestInterface $request, array $args): ResponseInterface
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...
Unused Code introduced by
The parameter $args 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...
19
    {
20
        return new JsonResponse([
21
            'drink' => 'grog',
22
            'pieces' => 'of eight',
23
            'shiver' => 'me timbers',
24
        ]);
25
    }
26
}
27