Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
23 | public function createRequest( |
||
24 | string $method, |
||
25 | string $uri, |
||
26 | array $args = [] |
||
27 | ): \Psr\Http\Message\RequestInterface { |
||
28 | return new \GuzzleHttp\Psr7\Request($method, $uri, [ |
||
29 | 'Content-Type' => 'application/json', |
||
30 | 'Accept' => 'application/json', |
||
31 | 'Authorization' => 'Token ' . $this->credentials->getToken(), |
||
32 | 'X-Secret' => $this->credentials->getSecret() |
||
33 | ], \json_encode($args)); |
||
34 | } |
||
36 |