| Conditions | 3 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public function register() |
||
| 24 | { |
||
| 25 | Reporter::$stopReporting = (bool) getenv('DUSK_REPORT_DISABLED'); |
||
| 26 | Reporter::$disableScreenshots = (bool) getenv('DUSK_SCREENSHOTS_DISABLED'); |
||
| 27 | $this->app->bind(Reporter::class, function () { |
||
| 28 | if (!Reporter::$storeBuildAt) { |
||
| 29 | Reporter::$storeBuildAt = base_path(getenv('DUSK_REPORT_PATH') ?: 'storage/laravel-dusk-reporter'); |
||
| 30 | } |
||
| 31 | |||
| 32 | return new Reporter(); |
||
| 33 | }); |
||
| 36 |