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

Index   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 4
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A notFound() 0 7 1
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