| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | public function handle(): int |
||
| 40 | { |
||
| 41 | $this->info("Starting installer for example events."); |
||
| 42 | (new Filesystem())->ensureDirectoryExists(app_path('Events')); |
||
| 43 | |||
| 44 | $this->info("Installing ConsoleLogEvent."); |
||
| 45 | copy(__DIR__ . '/../../../examples/app/Events/ConsoleLogEvent.php', app_path('Events/ConsoleLogEvent.php')); |
||
| 46 | $this->info("Installing ToastEvent."); |
||
| 47 | copy(__DIR__ . '/../../../examples/app/Events/ToastEvent.php', app_path('Events/ToastEvent.php')); |
||
| 48 | $this->info("Examples installed."); |
||
| 49 | return 0; |
||
| 50 | } |
||
| 52 |