private function findCalendar($calendarId, $calendars)
    {
        if (isset($calendars[$calendarId])) {
            return $calendars[$calendarId];
        } else {
            throw new \Exception(
                $this->translator->trans(
                    'services.calendar_manager.calendar_in_block_not_found',
                    array('%calendarId%' => $calendarId),
                    'exceptions'
                )
            );
        }
    }
private function findCalendar($calendarId, $calendars)
    {
        if (isset($calendars[$calendarId])) {
            return $calendars[$calendarId];
        } else {
            throw new \Exception(
                $this->translator->trans(
                    'services.calendar_manager.calendar_in_block_not_found',
                    array('%calendarId%' => $calendarId),
                    'exceptions'
                )
            );
        }
    }
private function findCalendar ( $ calendarId , $ calendars ) { if ( isset ( $ calendars [ $ calendarId ] ) ) { return $ calendars [ $ calendarId ] ; } else { throw new \ Exception ( $ this -> translator -> trans ( 'services.calendar_manager.calendar_in_block_not_found' , array ( '%calendarId%' => $ calendarId ) , 'exceptions' ) ) ; } }
find a calendar or throws an exception if a calendar is not found
find a calendar or throws an exception if a calendar is not found