Input   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 58.33%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 18
ccs 7
cts 12
cp 0.5833
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A process() 0 12 1
1
<?php declare(strict_types = 1);
2
3
namespace Venta\Adr;
4
5
use Psr\Http\Message\ServerRequestInterface;
6
use Venta\Contracts\Adr\Input as InputContract;
7
8
/**
9
 * Class Input
10
 *
11
 * @package Venta\Adr
12
 */
13
final class Input implements InputContract
14
{
15
    /**
16
     * @inheritDoc
17
     */
18 1
    public function process(ServerRequestInterface $request): array
19
    {
20
        return [
21 1
            array_replace(
22 1
                (array)$request->getQueryParams(),
23 1
                (array)$request->getParsedBody(),
24 1
                (array)$request->getUploadedFiles(),
25 1
                (array)$request->getCookieParams(),
26 1
                (array)$request->getAttributes()
27
            ),
28
        ];
29
    }
30
}