Header::__invoke()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 3
b 0
f 0
nc 1
nop 2
dl 0
loc 6
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace BEAR\Sunday\Provide\Transfer;
6
7
use BEAR\Resource\ResourceObject;
8
use Override;
9
10
final class Header implements HeaderInterface
11
{
12
    /**
13
     * {@inheritDoc}
14
     */
15
    #[Override]
16
    public function __invoke(ResourceObject $ro, array $server): array
17
    {
18
        unset($server);
19
20
        return $ro->headers;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $ro->headers returns the type BEAR\Resource\Headers which is incompatible with the type-hinted return array.
Loading history...
21
    }
22
}
23