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