Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | public function execute() |
||
20 | { |
||
21 | $path = sprintf( |
||
22 | "project/%s/export?key=%s", |
||
23 | $this->client->getProjectIdentifier(), |
||
24 | $this->client->getProjectApiKey() |
||
25 | ); |
||
26 | if (null !== $this->branch) { |
||
27 | $path = sprintf('%s&branch=%s', $path, $this->branch); |
||
28 | } |
||
29 | $request = $this->client->getHttpClient()->get($path); |
||
30 | $response = $request->send(); |
||
31 | |||
32 | return $response->getBody(true); |
||
33 | } |
||
34 | |||
55 |