Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
40 | public function createRequest( |
||
41 | $method, |
||
42 | $uri, |
||
43 | array $headers = [], |
||
44 | $body = null, |
||
45 | 1 | $protocolVersion = '1.1' |
|
46 | 1 | ) { |
|
47 | 1 | return (new Request( |
|
48 | 1 | $method, |
|
49 | 1 | $this->uriFactory->createUri($uri), |
|
50 | 1 | new Headers($headers), |
|
51 | 1 | [], |
|
52 | 1 | [], |
|
53 | 1 | $this->streamFactory->createStream($body), |
|
54 | [] |
||
55 | ))->withProtocolVersion($protocolVersion); |
||
56 | } |
||
75 |