Header   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
eloc 4
c 3
b 0
f 0
dl 0
loc 11
rs 10
wmc 1

1 Method

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