| Conditions | 3 |
| Paths | 4 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 16 | 7 | public function boot() |
|
| 17 | { |
||
| 18 | 7 | $configPath = __DIR__ . '/../config/pretend.php'; |
|
| 19 | |||
| 20 | 7 | if ( ! $this->isLumen()) { |
|
| 21 | 7 | $this->publishes([$configPath => config_path('pretend.php')], 'config'); |
|
| 22 | } |
||
| 23 | |||
| 24 | 7 | $this->mergeConfigFrom($configPath, 'pretend'); |
|
| 25 | |||
| 26 | 7 | if (!$this->app->bound('impersonator')) { |
|
| 27 | 7 | $this->app->bind('impersonator', Impersonator::class); |
|
| 28 | } |
||
| 29 | 7 | } |
|
| 30 | |||
| 57 |