Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
47 | public function createRequest(string $method, $uri): RequestInterface |
||
48 | { |
||
49 | if (!($uri instanceof UriInterface)) { |
||
50 | $uri = $this->uriFactory->createUri($uri); |
||
51 | } |
||
52 | |||
53 | return new Request( |
||
54 | $method, |
||
55 | $uri, |
||
56 | Request::PROTOCOL_VERSION_1_1, |
||
57 | $this->streamFactory->createStream(), |
||
58 | [] |
||
59 | ); |
||
62 |