ServerRequestFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 11
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A createServerRequest() 0 5 1
1
<?php
2
3
/**
4
 * High-performance PHP process supervisor and load balancer written in Go
5
 *
6
 * @author Wolfy-J
7
 */
8
declare(strict_types=1);
9
10
namespace Spiral\RoadRunner\Diactoros;
11
12
use Psr\Http\Message\ServerRequestFactoryInterface;
13
use Psr\Http\Message\ServerRequestInterface;
14
use Zend\Diactoros\ServerRequest;
15
16
final class ServerRequestFactory implements ServerRequestFactoryInterface
17
{
18
    /**
19
     * @inheritdoc
20
     */
21
    public function createServerRequest(string $method, $uri, array $serverParams = []): ServerRequestInterface
22
    {
23
        $uploadedFiles = [];
24
        return new ServerRequest($serverParams, $uploadedFiles, $uri, $method);
25
    }
26
}
27