for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace plunner\Listeners\Caldav;
use plunner\Events\Caldav\OkEvent;
class OkListener
{
/**
* Create the event listener.
*
* @return void
@return
Adding a @return annotation 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.
*/
public function __construct()
//
}
* Handle the event.
* @param OkEvent $event
public function handle(OkEvent $event)
$calendar = $event->getCalendar();
\Log::info('caldav (calendar id = ' . $calendar->calendar_id . ') correctly synchronized');
//$calendar = $event->getCalendar()->fresh();
$calendar->sync_errors = '';
$calendar->save();
Adding a
@return
annotation 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.