@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | */ |
| 121 | 121 | function calendarQuery(array $filters) { |
| 122 | 122 | // In a real implementation this should actually filter |
| 123 | - return array_map(function (Card $card) { |
|
| 123 | + return array_map(function(Card $card) { |
|
| 124 | 124 | return $card->getId() . '.ics'; |
| 125 | 125 | }, $this->children); |
| 126 | 126 | } |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | if ($this->childExists($name)) { |
| 140 | 140 | $card = array_values(array_filter( |
| 141 | 141 | $this->children, |
| 142 | - function ($card) use (&$name) { |
|
| 142 | + function($card) use (&$name) { |
|
| 143 | 143 | return $card->getId() . '.ics' === $name; |
| 144 | 144 | } |
| 145 | 145 | )); |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | * @inheritDoc |
| 154 | 154 | */ |
| 155 | 155 | function getChildren() { |
| 156 | - $childNames = array_map(function (Card $card) { |
|
| 156 | + $childNames = array_map(function(Card $card) { |
|
| 157 | 157 | return $card->getId() . '.ics'; |
| 158 | 158 | }, $this->children); |
| 159 | 159 | |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | function childExists($name) { |
| 173 | 173 | return count(array_filter( |
| 174 | 174 | $this->children, |
| 175 | - function ($card) use (&$name) { |
|
| 175 | + function($card) use (&$name) { |
|
| 176 | 176 | return $card->getId() . '.ics' === $name; |
| 177 | 177 | } |
| 178 | 178 | )) > 0; |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | */ |
| 52 | 52 | public function fetchAllForCalendarHome(string $principalUri): array { |
| 53 | 53 | $boards = $this->boardService->findAll(); |
| 54 | - return array_map(function (Board $board) use ($principalUri) { |
|
| 54 | + return array_map(function(Board $board) use ($principalUri) { |
|
| 55 | 55 | return new Calendar($principalUri, 'board-' . $board->getId(), $board); |
| 56 | 56 | }, $boards); |
| 57 | 57 | } |