| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 2 | ||
| Bugs | 2 | Features | 0 |
| 1 | <?php |
||
| 25 | public function handle(OkEvent $event) |
||
| 26 | { |
||
| 27 | // |
||
| 28 | $calendar = $event->getCalendar(); |
||
| 29 | \Log::info('caldav (calendar id = ' . $calendar->calendar_id . ') correctly synchronized'); |
||
| 30 | //$calendar = $event->getCalendar()->fresh(); |
||
| 31 | $calendar->sync_errors = ''; |
||
| 32 | $calendar->save(); |
||
| 33 | } |
||
| 34 | } |
||
| 35 |
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.