Conditions | 3 |
Paths | 3 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
33 | public function locale(string $projectKey, string $locale, string $ext, array $params) |
||
34 | { |
||
35 | $params['key'] = $projectKey; |
||
36 | $response = $this->httpGet(sprintf('/api/export/locale/%s.%s?%s', $locale, $ext, http_build_query($params))); |
||
37 | |||
38 | if (!$this->hydrator) { |
||
39 | return $response; |
||
40 | } |
||
41 | |||
42 | if ($response->getStatusCode() !== 200) { |
||
43 | $this->handleErrors($response); |
||
44 | } |
||
45 | |||
46 | return (string) $response->getBody(); |
||
47 | } |
||
48 | } |
||
49 |