diff options
author | emkael <emkael@tlen.pl> | 2016-11-03 23:22:40 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2016-11-03 23:22:40 +0100 |
commit | bef5754e4676a8a578550b6af24d050a946405eb (patch) | |
tree | 190a54af236d00c476b28799ba502a42205a95c5 /app/frontend/facades/EventFacade.php | |
parent | 94e03b260197122ae8f6d7dfedfb2a191fdae273 (diff) |
* more strict function definitions
Diffstat (limited to 'app/frontend/facades/EventFacade.php')
-rw-r--r-- | app/frontend/facades/EventFacade.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/frontend/facades/EventFacade.php b/app/frontend/facades/EventFacade.php index 79ca363..454f522 100644 --- a/app/frontend/facades/EventFacade.php +++ b/app/frontend/facades/EventFacade.php @@ -21,7 +21,7 @@ class EventFacade extends Facade { implode( ',', array_map( - function($calendar) { + function(Calendar $calendar) { return $this->quoteString($calendar->UID); }, $calendars @@ -44,7 +44,7 @@ class EventFacade extends Facade { TimezoneDTO $tz, string $class = 'Application.dto.EventDTO') { return array_map( - function($event) use($calendars, $class, $tz) { + function(Entry $event) use($calendars, $class, $tz) { $dto = Prado::createComponent($class, $tz); $dto->loadRecord($event, $calendars); return $dto; @@ -105,7 +105,7 @@ class EventFacade extends Facade { if ($events) { return Calendar::finder()->findAllByPks( array_map( - function($event) { + function(Entry $event) { return $event->CalendarID; }, $events |