Passed
Push — master ( 9013bb...125cf1 )
by Kirill
03:56
created

UriFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 2
c 1
b 0
f 0
dl 0
loc 9
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A createUri() 0 3 1
1
<?php
2
3
/**
4
 * Spiral Framework.
5
 *
6
 * @license   MIT
7
 * @author    Anton Titov (Wolfy-J)
8
 */
9
10
declare(strict_types=1);
11
12
namespace Spiral\Tests\Http\Diactoros;
13
14
use Psr\Http\Message\UriFactoryInterface;
15
use Psr\Http\Message\UriInterface;
16
use Laminas\Diactoros\Uri;
17
18
final class UriFactory implements UriFactoryInterface
19
{
20
    /**
21
     * @param string $uri
22
     * @return UriInterface
23
     */
24
    public function createUri(string $uri = ''): UriInterface
25
    {
26
        return new Uri($uri);
27
    }
28
}
29