GuzzleUriFactory::createUri()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
ccs 1
cts 1
cp 1
crap 1
rs 10
c 1
b 0
f 0
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
 * @deprecated This will be removed in php-http/message2.0. Consider using the official Guzzle PSR-17 factory
14
 */
15
final class GuzzleUriFactory implements UriFactory
16
{
17
    /**
18 3
     * {@inheritdoc}
19
     */
20 3
    public function createUri($uri)
21
    {
22
        return Psr7\uri_for($uri);
0 ignored issues
show
Bug introduced by
The function uri_for was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

22
        return /** @scrutinizer ignore-call */ Psr7\uri_for($uri);
Loading history...
23
    }
24
}
25