Completed
Pull Request — master (#2)
by Márk
02:43
created

GuzzleUriFactory::createUri()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
3
namespace Http\Message\UriFactory;
4
5
use GuzzleHttp\Psr7;
6
use Http\Message\UriFactory;
7
8
/**
9
 * Creates Guzzle URI.
10
 *
11
 * @author David de Boer <[email protected]>
12
 */
13
final class GuzzleUriFactory implements UriFactory
14
{
15
    /**
16
     * {@inheritdoc}
17
     */
18 3
    public function createUri($uri)
19
    {
20 3
        return Psr7\uri_for($uri);
21
    }
22
}
23