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