Passed
Push — master ( 1d30f9...202808 )
by Peter
04:48
created

Index::notFound()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 7
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AbterPhp\Admin\Http\Controllers\Api;
6
7
use Opulence\Http\Responses\Response;
8
use Opulence\Http\Responses\ResponseHeaders;
9
use Opulence\Routing\Controller;
10
11
class Index extends Controller
12
{
13
    /**
14
     * @return array
15
     */
16
    public function notFound(): Response
17
    {
18
        $response = new Response();
19
20
        $response->setStatusCode(ResponseHeaders::HTTP_NOT_IMPLEMENTED);
21
22
        return $response;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $response returns the type Opulence\Http\Responses\Response which is incompatible with the documented return type array.
Loading history...
23
    }
24
}
25