| Conditions | 2 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 34 | 1 | public function boot() |
|
| 35 | { |
||
| 36 | 1 | $dotEnv = \Dotenv\Dotenv::create(__DIR__ . '../..'); |
|
| 37 | 1 | $dotEnv->safeLoad(); |
|
| 38 | 1 | $dotEnv->required(['GITLAB_TOKEN'])->notEmpty(); |
|
| 39 | |||
| 40 | /** @var Container $container */ |
||
| 41 | 1 | $container = $this->getContainer(); |
|
| 42 | |||
| 43 | 1 | $container->add('SLACK_WEBHOOK_URL', getenv('SLACK_WEBHOOK_URL')); |
|
| 44 | 1 | $container->add('SLACK_CHANNEL', getenv('SLACK_CHANNEL')); |
|
| 45 | 1 | $container->add('GITLAB_TOKEN', getenv('GITLAB_TOKEN')); |
|
| 46 | 1 | $container->add('GITLAB_URL', (getenv('GITLAB_URL') ? getenv('GITLAB_URL') : 'https://gitlab.com')); |
|
| 47 | 1 | } |
|
| 49 |