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