Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
26 | 6 | public function handle(ErrorEvent $event) |
|
27 | { |
||
28 | // |
||
29 | 6 | \Log::info('problems during caldav (calendar id = ' . $event->getCalendar()->calendar_id . ') sync: ' . $event->getError()); |
|
30 | 6 | $calendar = $event->getCalendar(); |
|
31 | //$calendar = $event->getCalendar()->fresh(); |
||
32 | 6 | $calendar->sync_errors = $event->getError(); |
|
33 | 6 | $calendar->save(); |
|
34 | 6 | } |
|
35 | } |
||
36 |