| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | public function build(): HTTPResponse |
||
| 24 | { |
||
| 25 | $repository = $_GET['repository'] ?? null; |
||
| 26 | $revision = $_GET['revision'] ?? null; |
||
| 27 | $provider = $_GET['provider'] ?? null; |
||
| 28 | $builderName = $_GET['builderName'] ?? null; |
||
| 29 | $appVersion = $_GET['revision'] ?? null; |
||
| 30 | |||
| 31 | $bugsnag = Injector::inst()->get(Bugsnag::class); |
||
| 32 | $bugsnag |
||
| 33 | ->setAppVersion($appVersion) |
||
| 34 | ->notifyBuild($repository, $revision, $provider, $builderName); |
||
| 35 | |||
| 36 | $response = new HTTPResponse(); |
||
| 37 | $response->setStatusCode(200); |
||
| 38 | return $response; |
||
| 39 | } |
||
| 47 |