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