| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 45 | 26 | public function rest(string $method, string $uri, array $options = [], ?bool $needSequence = null): array |
|
| 46 | { |
||
| 47 | 26 | $response = $this->client->request($method, $this->endpoint . $this->version . $uri, $options); |
|
| 48 | 26 | if ($method === 'HEAD') |
|
| 49 | 2 | return $this->transformer->transformHeader($response); |
|
| 50 | else |
||
| 51 | 24 | return $this->transformer->transform($response, $needSequence); |
|
| 52 | } |
||
| 53 | } |