fixed partially error from phpcs callendarcontroller