| Conditions | 2 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function handle(SyncCheckIns $checkinsManager) |
||
| 30 | { |
||
| 31 | $localCheckIns = config('honeybadger.checkins', []); |
||
| 32 | $result = $checkinsManager->sync($localCheckIns); |
||
| 33 | $this->info('Check-ins were synchronized with Honeybadger.'); |
||
| 34 | $this->table(['Id', 'Name', 'Slug', 'Schedule Type', 'Report Period', 'Cron Schedule', 'Cron Timezone', 'Grace Period', 'Status'], array_map(function ($checkin) { |
||
| 35 | return [ |
||
| 36 | $checkin->id, |
||
| 37 | $checkin->name, |
||
| 38 | $checkin->slug, |
||
| 39 | $checkin->scheduleType, |
||
| 40 | $checkin->reportPeriod, |
||
| 41 | $checkin->cronSchedule, |
||
| 42 | $checkin->cronTimezone, |
||
| 43 | $checkin->gracePeriod, |
||
| 44 | $checkin->isDeleted() ? '❌ Removed' : '✅ Synchronized', |
||
| 45 | ]; |
||
| 46 | }, $result)); |
||
| 47 | } |
||
| 49 |