| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 54 | 27 | public function rest(string $method, string $uri, array $options = [], ?bool $needSequence = null): array |
|
| 55 | { |
||
| 56 | 27 | $response = $this->client->request($method, $this->endpoint . $this->version . $uri, $options); |
|
| 57 | 27 | if ($method === 'HEAD') |
|
| 58 | 2 | return $this->transformer->transformHeader($response); |
|
| 59 | else |
||
| 60 | 25 | return $this->transformer->transform($response, $needSequence); |
|
| 61 | } |
||
| 62 | } |