@@ -61,7 +61,7 @@ |
||
61 | 61 | 'count-dirs', |
62 | 62 | null, |
63 | 63 | InputOption::VALUE_NONE, |
64 | - 'Also count the number of user directories in the database (could time out on huge installations, therefore defaults to no with ' . self::DEFAULT_COUNT_DIRS_MAX_USERS . '+ users)' |
|
64 | + 'Also count the number of user directories in the database (could time out on huge installations, therefore defaults to no with '.self::DEFAULT_COUNT_DIRS_MAX_USERS.'+ users)' |
|
65 | 65 | ) |
66 | 66 | ; |
67 | 67 | } |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | ); |
64 | 64 | } catch (Throwable $e) { |
65 | 65 | // Any error with activities shouldn't abort the addressbook creation, so we just log it |
66 | - $this->logger->error('Error generating activities for a new card in addressbook: ' . $e->getMessage(), [ |
|
66 | + $this->logger->error('Error generating activities for a new card in addressbook: '.$e->getMessage(), [ |
|
67 | 67 | 'exception' => $e, |
68 | 68 | ]); |
69 | 69 | } |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | ); |
82 | 82 | } catch (Throwable $e) { |
83 | 83 | // Any error with activities shouldn't abort the addressbook update, so we just log it |
84 | - $this->logger->error('Error generating activities for a changed card in addressbook: ' . $e->getMessage(), [ |
|
84 | + $this->logger->error('Error generating activities for a changed card in addressbook: '.$e->getMessage(), [ |
|
85 | 85 | 'exception' => $e, |
86 | 86 | ]); |
87 | 87 | } |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | ); |
100 | 100 | } catch (Throwable $e) { |
101 | 101 | // Any error with activities shouldn't abort the addressbook deletion, so we just log it |
102 | - $this->logger->error('Error generating activities for a deleted card in addressbook: ' . $e->getMessage(), [ |
|
102 | + $this->logger->error('Error generating activities for a deleted card in addressbook: '.$e->getMessage(), [ |
|
103 | 103 | 'exception' => $e, |
104 | 104 | ]); |
105 | 105 | } |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | ); |
61 | 61 | } catch (Throwable $e) { |
62 | 62 | // Any error with activities shouldn't abort the addressbook creation, so we just log it |
63 | - $this->logger->error('Error generating activities for a new addressbook: ' . $e->getMessage(), [ |
|
63 | + $this->logger->error('Error generating activities for a new addressbook: '.$e->getMessage(), [ |
|
64 | 64 | 'exception' => $e, |
65 | 65 | ]); |
66 | 66 | } |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | ); |
78 | 78 | } catch (Throwable $e) { |
79 | 79 | // Any error with activities shouldn't abort the addressbook update, so we just log it |
80 | - $this->logger->error('Error generating activities for a changed addressbook: ' . $e->getMessage(), [ |
|
80 | + $this->logger->error('Error generating activities for a changed addressbook: '.$e->getMessage(), [ |
|
81 | 81 | 'exception' => $e, |
82 | 82 | ]); |
83 | 83 | } |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | ); |
94 | 94 | } catch (Throwable $e) { |
95 | 95 | // Any error with activities shouldn't abort the addressbook deletion, so we just log it |
96 | - $this->logger->error('Error generating activities for a deleted addressbook: ' . $e->getMessage(), [ |
|
96 | + $this->logger->error('Error generating activities for a deleted addressbook: '.$e->getMessage(), [ |
|
97 | 97 | 'exception' => $e, |
98 | 98 | ]); |
99 | 99 | } |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | ); |
112 | 112 | } catch (Throwable $e) { |
113 | 113 | // Any error with activities shouldn't abort the addressbook creation, so we just log it |
114 | - $this->logger->error('Error generating activities for (un)sharing addressbook: ' . $e->getMessage(), [ |
|
114 | + $this->logger->error('Error generating activities for (un)sharing addressbook: '.$e->getMessage(), [ |
|
115 | 115 | 'exception' => $e, |
116 | 116 | ]); |
117 | 117 | } |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | ); |
79 | 79 | } catch (Throwable $e) { |
80 | 80 | // Any error with reminders shouldn't abort the calendar move, so we just log it |
81 | - $this->logger->error('Error cleaning up reminders of a calendar moved into trashbin: ' . $e->getMessage(), [ |
|
81 | + $this->logger->error('Error cleaning up reminders of a calendar moved into trashbin: '.$e->getMessage(), [ |
|
82 | 82 | 'exception' => $e, |
83 | 83 | ]); |
84 | 84 | } |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | ); |
94 | 94 | } catch (Throwable $e) { |
95 | 95 | // Any error with activities shouldn't abort the calendar deletion, so we just log it |
96 | - $this->logger->error('Error cleaning up reminders of a deleted calendar: ' . $e->getMessage(), [ |
|
96 | + $this->logger->error('Error cleaning up reminders of a deleted calendar: '.$e->getMessage(), [ |
|
97 | 97 | 'exception' => $e, |
98 | 98 | ]); |
99 | 99 | } |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | ); |
115 | 115 | } catch (Throwable $e) { |
116 | 116 | // Any error with reminders shouldn't abort the calendar deletion, so we just log it |
117 | - $this->logger->error('Error restoring reminders of a calendar: ' . $e->getMessage(), [ |
|
117 | + $this->logger->error('Error restoring reminders of a calendar: '.$e->getMessage(), [ |
|
118 | 118 | 'exception' => $e, |
119 | 119 | ]); |
120 | 120 | } |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | ); |
130 | 130 | } catch (Throwable $e) { |
131 | 131 | // Any error with reminders shouldn't abort the calendar object creation, so we just log it |
132 | - $this->logger->error('Error creating reminders of a calendar object: ' . $e->getMessage(), [ |
|
132 | + $this->logger->error('Error creating reminders of a calendar object: '.$e->getMessage(), [ |
|
133 | 133 | 'exception' => $e, |
134 | 134 | ]); |
135 | 135 | } |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | ); |
145 | 145 | } catch (Throwable $e) { |
146 | 146 | // Any error with activities shouldn't abort the calendar object deletion, so we just log it |
147 | - $this->logger->error('Error cleaning up reminders of a calendar object: ' . $e->getMessage(), [ |
|
147 | + $this->logger->error('Error cleaning up reminders of a calendar object: '.$e->getMessage(), [ |
|
148 | 148 | 'exception' => $e, |
149 | 149 | ]); |
150 | 150 | } |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | ); |
160 | 160 | } catch (Throwable $e) { |
161 | 161 | // Any error with reminders shouldn't abort the calendar object deletion, so we just log it |
162 | - $this->logger->error('Error deleting reminders of a calendar object: ' . $e->getMessage(), [ |
|
162 | + $this->logger->error('Error deleting reminders of a calendar object: '.$e->getMessage(), [ |
|
163 | 163 | 'exception' => $e, |
164 | 164 | ]); |
165 | 165 | } |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | ); |
175 | 175 | } catch (Throwable $e) { |
176 | 176 | // Any error with reminders shouldn't abort the calendar object deletion, so we just log it |
177 | - $this->logger->error('Error restoring reminders of a calendar object: ' . $e->getMessage(), [ |
|
177 | + $this->logger->error('Error restoring reminders of a calendar object: '.$e->getMessage(), [ |
|
178 | 178 | 'exception' => $e, |
179 | 179 | ]); |
180 | 180 | } |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | ); |
190 | 190 | } catch (Throwable $e) { |
191 | 191 | // Any error with activities shouldn't abort the calendar object deletion, so we just log it |
192 | - $this->logger->error('Error cleaning up reminders of a deleted calendar object: ' . $e->getMessage(), [ |
|
192 | + $this->logger->error('Error cleaning up reminders of a deleted calendar object: '.$e->getMessage(), [ |
|
193 | 193 | 'exception' => $e, |
194 | 194 | ]); |
195 | 195 | } |
@@ -99,15 +99,15 @@ discard block |
||
99 | 99 | $tags = $this->tagManager->getTagsByIds([$tagId]); |
100 | 100 | $tag = current($tags); |
101 | 101 | if (!$this->tagManager->canUserSeeTag($tag, $this->user)) { |
102 | - throw new PreconditionFailed('Tag with id ' . $tagId . ' does not exist, cannot assign'); |
|
102 | + throw new PreconditionFailed('Tag with id '.$tagId.' does not exist, cannot assign'); |
|
103 | 103 | } |
104 | 104 | if (!$this->tagManager->canUserAssignTag($tag, $this->user)) { |
105 | - throw new Forbidden('No permission to assign tag ' . $tagId); |
|
105 | + throw new Forbidden('No permission to assign tag '.$tagId); |
|
106 | 106 | } |
107 | 107 | |
108 | 108 | $this->tagMapper->assignTags($this->objectId, $this->objectType, $tagId); |
109 | 109 | } catch (TagNotFoundException $e) { |
110 | - throw new PreconditionFailed('Tag with id ' . $tagId . ' does not exist, cannot assign'); |
|
110 | + throw new PreconditionFailed('Tag with id '.$tagId.' does not exist, cannot assign'); |
|
111 | 111 | } |
112 | 112 | } |
113 | 113 | |
@@ -124,11 +124,11 @@ discard block |
||
124 | 124 | return $this->makeNode($tag); |
125 | 125 | } |
126 | 126 | } |
127 | - throw new NotFound('Tag with id ' . $tagName . ' not present for object ' . $this->objectId); |
|
127 | + throw new NotFound('Tag with id '.$tagName.' not present for object '.$this->objectId); |
|
128 | 128 | } catch (\InvalidArgumentException $e) { |
129 | 129 | throw new BadRequest('Invalid tag id', 0, $e); |
130 | 130 | } catch (TagNotFoundException $e) { |
131 | - throw new NotFound('Tag with id ' . $tagName . ' not found', 0, $e); |
|
131 | + throw new NotFound('Tag with id '.$tagName.' not found', 0, $e); |
|
132 | 132 | } |
133 | 133 | } |
134 | 134 | |
@@ -140,11 +140,11 @@ discard block |
||
140 | 140 | $tags = $this->tagManager->getTagsByIds($tagIds); |
141 | 141 | |
142 | 142 | // filter out non-visible tags |
143 | - $tags = array_filter($tags, function ($tag) { |
|
143 | + $tags = array_filter($tags, function($tag) { |
|
144 | 144 | return $this->tagManager->canUserSeeTag($tag, $this->user); |
145 | 145 | }); |
146 | 146 | |
147 | - return array_values(array_map(function ($tag) { |
|
147 | + return array_values(array_map(function($tag) { |
|
148 | 148 | return $this->makeNode($tag); |
149 | 149 | }, $tags)); |
150 | 150 | } |
@@ -99,49 +99,49 @@ discard block |
||
99 | 99 | |
100 | 100 | if ($event->getSubject() === self::SUBJECT_ADD) { |
101 | 101 | $subject = $this->l->t('{actor} created calendar {calendar}'); |
102 | - } elseif ($event->getSubject() === self::SUBJECT_ADD . '_self') { |
|
102 | + } elseif ($event->getSubject() === self::SUBJECT_ADD.'_self') { |
|
103 | 103 | $subject = $this->l->t('You created calendar {calendar}'); |
104 | 104 | } elseif ($event->getSubject() === self::SUBJECT_DELETE) { |
105 | 105 | $subject = $this->l->t('{actor} deleted calendar {calendar}'); |
106 | - } elseif ($event->getSubject() === self::SUBJECT_DELETE . '_self') { |
|
106 | + } elseif ($event->getSubject() === self::SUBJECT_DELETE.'_self') { |
|
107 | 107 | $subject = $this->l->t('You deleted calendar {calendar}'); |
108 | 108 | } elseif ($event->getSubject() === self::SUBJECT_UPDATE) { |
109 | 109 | $subject = $this->l->t('{actor} updated calendar {calendar}'); |
110 | - } elseif ($event->getSubject() === self::SUBJECT_UPDATE . '_self') { |
|
110 | + } elseif ($event->getSubject() === self::SUBJECT_UPDATE.'_self') { |
|
111 | 111 | $subject = $this->l->t('You updated calendar {calendar}'); |
112 | 112 | } elseif ($event->getSubject() === self::SUBJECT_MOVE_TO_TRASH) { |
113 | 113 | $subject = $this->l->t('{actor} deleted calendar {calendar}'); |
114 | - } elseif ($event->getSubject() === self::SUBJECT_MOVE_TO_TRASH . '_self') { |
|
114 | + } elseif ($event->getSubject() === self::SUBJECT_MOVE_TO_TRASH.'_self') { |
|
115 | 115 | $subject = $this->l->t('You deleted calendar {calendar}'); |
116 | 116 | } elseif ($event->getSubject() === self::SUBJECT_RESTORE) { |
117 | 117 | $subject = $this->l->t('{actor} restored calendar {calendar}'); |
118 | - } elseif ($event->getSubject() === self::SUBJECT_RESTORE . '_self') { |
|
118 | + } elseif ($event->getSubject() === self::SUBJECT_RESTORE.'_self') { |
|
119 | 119 | $subject = $this->l->t('You restored calendar {calendar}'); |
120 | - } elseif ($event->getSubject() === self::SUBJECT_PUBLISH . '_self') { |
|
120 | + } elseif ($event->getSubject() === self::SUBJECT_PUBLISH.'_self') { |
|
121 | 121 | $subject = $this->l->t('You shared calendar {calendar} as public link'); |
122 | - } elseif ($event->getSubject() === self::SUBJECT_UNPUBLISH . '_self') { |
|
122 | + } elseif ($event->getSubject() === self::SUBJECT_UNPUBLISH.'_self') { |
|
123 | 123 | $subject = $this->l->t('You removed public link for calendar {calendar}'); |
124 | 124 | } elseif ($event->getSubject() === self::SUBJECT_SHARE_USER) { |
125 | 125 | $subject = $this->l->t('{actor} shared calendar {calendar} with you'); |
126 | - } elseif ($event->getSubject() === self::SUBJECT_SHARE_USER . '_you') { |
|
126 | + } elseif ($event->getSubject() === self::SUBJECT_SHARE_USER.'_you') { |
|
127 | 127 | $subject = $this->l->t('You shared calendar {calendar} with {user}'); |
128 | - } elseif ($event->getSubject() === self::SUBJECT_SHARE_USER . '_by') { |
|
128 | + } elseif ($event->getSubject() === self::SUBJECT_SHARE_USER.'_by') { |
|
129 | 129 | $subject = $this->l->t('{actor} shared calendar {calendar} with {user}'); |
130 | 130 | } elseif ($event->getSubject() === self::SUBJECT_UNSHARE_USER) { |
131 | 131 | $subject = $this->l->t('{actor} unshared calendar {calendar} from you'); |
132 | - } elseif ($event->getSubject() === self::SUBJECT_UNSHARE_USER . '_you') { |
|
132 | + } elseif ($event->getSubject() === self::SUBJECT_UNSHARE_USER.'_you') { |
|
133 | 133 | $subject = $this->l->t('You unshared calendar {calendar} from {user}'); |
134 | - } elseif ($event->getSubject() === self::SUBJECT_UNSHARE_USER . '_by') { |
|
134 | + } elseif ($event->getSubject() === self::SUBJECT_UNSHARE_USER.'_by') { |
|
135 | 135 | $subject = $this->l->t('{actor} unshared calendar {calendar} from {user}'); |
136 | - } elseif ($event->getSubject() === self::SUBJECT_UNSHARE_USER . '_self') { |
|
136 | + } elseif ($event->getSubject() === self::SUBJECT_UNSHARE_USER.'_self') { |
|
137 | 137 | $subject = $this->l->t('{actor} unshared calendar {calendar} from themselves'); |
138 | - } elseif ($event->getSubject() === self::SUBJECT_SHARE_GROUP . '_you') { |
|
138 | + } elseif ($event->getSubject() === self::SUBJECT_SHARE_GROUP.'_you') { |
|
139 | 139 | $subject = $this->l->t('You shared calendar {calendar} with group {group}'); |
140 | - } elseif ($event->getSubject() === self::SUBJECT_SHARE_GROUP . '_by') { |
|
140 | + } elseif ($event->getSubject() === self::SUBJECT_SHARE_GROUP.'_by') { |
|
141 | 141 | $subject = $this->l->t('{actor} shared calendar {calendar} with group {group}'); |
142 | - } elseif ($event->getSubject() === self::SUBJECT_UNSHARE_GROUP . '_you') { |
|
142 | + } elseif ($event->getSubject() === self::SUBJECT_UNSHARE_GROUP.'_you') { |
|
143 | 143 | $subject = $this->l->t('You unshared calendar {calendar} from group {group}'); |
144 | - } elseif ($event->getSubject() === self::SUBJECT_UNSHARE_GROUP . '_by') { |
|
144 | + } elseif ($event->getSubject() === self::SUBJECT_UNSHARE_GROUP.'_by') { |
|
145 | 145 | $subject = $this->l->t('{actor} unshared calendar {calendar} from group {group}'); |
146 | 146 | } else { |
147 | 147 | throw new \InvalidArgumentException(); |
@@ -177,45 +177,45 @@ discard block |
||
177 | 177 | if (isset($parameters['calendar'])) { |
178 | 178 | switch ($subject) { |
179 | 179 | case self::SUBJECT_ADD: |
180 | - case self::SUBJECT_ADD . '_self': |
|
180 | + case self::SUBJECT_ADD.'_self': |
|
181 | 181 | case self::SUBJECT_DELETE: |
182 | - case self::SUBJECT_DELETE . '_self': |
|
182 | + case self::SUBJECT_DELETE.'_self': |
|
183 | 183 | case self::SUBJECT_UPDATE: |
184 | - case self::SUBJECT_UPDATE . '_self': |
|
184 | + case self::SUBJECT_UPDATE.'_self': |
|
185 | 185 | case self::SUBJECT_MOVE_TO_TRASH: |
186 | - case self::SUBJECT_MOVE_TO_TRASH . '_self': |
|
186 | + case self::SUBJECT_MOVE_TO_TRASH.'_self': |
|
187 | 187 | case self::SUBJECT_RESTORE: |
188 | - case self::SUBJECT_RESTORE . '_self': |
|
189 | - case self::SUBJECT_PUBLISH . '_self': |
|
190 | - case self::SUBJECT_UNPUBLISH . '_self': |
|
188 | + case self::SUBJECT_RESTORE.'_self': |
|
189 | + case self::SUBJECT_PUBLISH.'_self': |
|
190 | + case self::SUBJECT_UNPUBLISH.'_self': |
|
191 | 191 | case self::SUBJECT_SHARE_USER: |
192 | 192 | case self::SUBJECT_UNSHARE_USER: |
193 | - case self::SUBJECT_UNSHARE_USER . '_self': |
|
193 | + case self::SUBJECT_UNSHARE_USER.'_self': |
|
194 | 194 | return [ |
195 | 195 | 'actor' => $this->generateUserParameter($parameters['actor']), |
196 | 196 | 'calendar' => $this->generateCalendarParameter($parameters['calendar'], $this->l), |
197 | 197 | ]; |
198 | - case self::SUBJECT_SHARE_USER . '_you': |
|
199 | - case self::SUBJECT_UNSHARE_USER . '_you': |
|
198 | + case self::SUBJECT_SHARE_USER.'_you': |
|
199 | + case self::SUBJECT_UNSHARE_USER.'_you': |
|
200 | 200 | return [ |
201 | 201 | 'calendar' => $this->generateCalendarParameter($parameters['calendar'], $this->l), |
202 | 202 | 'user' => $this->generateUserParameter($parameters['user']), |
203 | 203 | ]; |
204 | - case self::SUBJECT_SHARE_USER . '_by': |
|
205 | - case self::SUBJECT_UNSHARE_USER . '_by': |
|
204 | + case self::SUBJECT_SHARE_USER.'_by': |
|
205 | + case self::SUBJECT_UNSHARE_USER.'_by': |
|
206 | 206 | return [ |
207 | 207 | 'actor' => $this->generateUserParameter($parameters['actor']), |
208 | 208 | 'calendar' => $this->generateCalendarParameter($parameters['calendar'], $this->l), |
209 | 209 | 'user' => $this->generateUserParameter($parameters['user']), |
210 | 210 | ]; |
211 | - case self::SUBJECT_SHARE_GROUP . '_you': |
|
212 | - case self::SUBJECT_UNSHARE_GROUP . '_you': |
|
211 | + case self::SUBJECT_SHARE_GROUP.'_you': |
|
212 | + case self::SUBJECT_UNSHARE_GROUP.'_you': |
|
213 | 213 | return [ |
214 | 214 | 'calendar' => $this->generateCalendarParameter($parameters['calendar'], $this->l), |
215 | 215 | 'group' => $this->generateGroupParameter($parameters['group']), |
216 | 216 | ]; |
217 | - case self::SUBJECT_SHARE_GROUP . '_by': |
|
218 | - case self::SUBJECT_UNSHARE_GROUP . '_by': |
|
217 | + case self::SUBJECT_SHARE_GROUP.'_by': |
|
218 | + case self::SUBJECT_UNSHARE_GROUP.'_by': |
|
219 | 219 | return [ |
220 | 220 | 'actor' => $this->generateUserParameter($parameters['actor']), |
221 | 221 | 'calendar' => $this->generateCalendarParameter($parameters['calendar'], $this->l), |
@@ -231,41 +231,41 @@ discard block |
||
231 | 231 | // they will get the dead entries in their stream. |
232 | 232 | switch ($subject) { |
233 | 233 | case self::SUBJECT_ADD: |
234 | - case self::SUBJECT_ADD . '_self': |
|
234 | + case self::SUBJECT_ADD.'_self': |
|
235 | 235 | case self::SUBJECT_DELETE: |
236 | - case self::SUBJECT_DELETE . '_self': |
|
236 | + case self::SUBJECT_DELETE.'_self': |
|
237 | 237 | case self::SUBJECT_UPDATE: |
238 | - case self::SUBJECT_UPDATE . '_self': |
|
239 | - case self::SUBJECT_PUBLISH . '_self': |
|
240 | - case self::SUBJECT_UNPUBLISH . '_self': |
|
238 | + case self::SUBJECT_UPDATE.'_self': |
|
239 | + case self::SUBJECT_PUBLISH.'_self': |
|
240 | + case self::SUBJECT_UNPUBLISH.'_self': |
|
241 | 241 | case self::SUBJECT_SHARE_USER: |
242 | 242 | case self::SUBJECT_UNSHARE_USER: |
243 | - case self::SUBJECT_UNSHARE_USER . '_self': |
|
243 | + case self::SUBJECT_UNSHARE_USER.'_self': |
|
244 | 244 | return [ |
245 | 245 | 'actor' => $this->generateUserParameter($parameters[0]), |
246 | 246 | 'calendar' => $this->generateLegacyCalendarParameter($event->getObjectId(), $parameters[1]), |
247 | 247 | ]; |
248 | - case self::SUBJECT_SHARE_USER . '_you': |
|
249 | - case self::SUBJECT_UNSHARE_USER . '_you': |
|
248 | + case self::SUBJECT_SHARE_USER.'_you': |
|
249 | + case self::SUBJECT_UNSHARE_USER.'_you': |
|
250 | 250 | return [ |
251 | 251 | 'user' => $this->generateUserParameter($parameters[0]), |
252 | 252 | 'calendar' => $this->generateLegacyCalendarParameter($event->getObjectId(), $parameters[1]), |
253 | 253 | ]; |
254 | - case self::SUBJECT_SHARE_USER . '_by': |
|
255 | - case self::SUBJECT_UNSHARE_USER . '_by': |
|
254 | + case self::SUBJECT_SHARE_USER.'_by': |
|
255 | + case self::SUBJECT_UNSHARE_USER.'_by': |
|
256 | 256 | return [ |
257 | 257 | 'user' => $this->generateUserParameter($parameters[0]), |
258 | 258 | 'calendar' => $this->generateLegacyCalendarParameter($event->getObjectId(), $parameters[1]), |
259 | 259 | 'actor' => $this->generateUserParameter($parameters[2]), |
260 | 260 | ]; |
261 | - case self::SUBJECT_SHARE_GROUP . '_you': |
|
262 | - case self::SUBJECT_UNSHARE_GROUP . '_you': |
|
261 | + case self::SUBJECT_SHARE_GROUP.'_you': |
|
262 | + case self::SUBJECT_UNSHARE_GROUP.'_you': |
|
263 | 263 | return [ |
264 | 264 | 'group' => $this->generateGroupParameter($parameters[0]), |
265 | 265 | 'calendar' => $this->generateLegacyCalendarParameter($event->getObjectId(), $parameters[1]), |
266 | 266 | ]; |
267 | - case self::SUBJECT_SHARE_GROUP . '_by': |
|
268 | - case self::SUBJECT_UNSHARE_GROUP . '_by': |
|
267 | + case self::SUBJECT_SHARE_GROUP.'_by': |
|
268 | + case self::SUBJECT_UNSHARE_GROUP.'_by': |
|
269 | 269 | return [ |
270 | 270 | 'group' => $this->generateGroupParameter($parameters[0]), |
271 | 271 | 'calendar' => $this->generateLegacyCalendarParameter($event->getObjectId(), $parameters[1]), |
@@ -118,7 +118,7 @@ |
||
118 | 118 | } |
119 | 119 | |
120 | 120 | public function calendarQuery(array $filters) { |
121 | - return array_map(function (array $calendarObjectInfo) { |
|
121 | + return array_map(function(array $calendarObjectInfo) { |
|
122 | 122 | return $this->getRelativeObjectPath($calendarObjectInfo); |
123 | 123 | }, $this->caldavBackend->getDeletedCalendarObjectsByPrincipal($this->principalInfo['uri'])); |
124 | 124 | } |
@@ -41,7 +41,7 @@ |
||
41 | 41 | |
42 | 42 | $filename = strtr($filename, ['"' => '\\"', '\\' => '\\\\']); |
43 | 43 | |
44 | - $this->addHeader('Content-Disposition', 'attachment; filename="' . $filename . '"'); |
|
44 | + $this->addHeader('Content-Disposition', 'attachment; filename="'.$filename.'"'); |
|
45 | 45 | $this->addHeader('Content-Type', $contentType); |
46 | 46 | } |
47 | 47 | } |
@@ -31,10 +31,10 @@ |
||
31 | 31 | * along with this program. If not, see <http://www.gnu.org/licenses/> |
32 | 32 | * |
33 | 33 | */ |
34 | -require_once __DIR__ . '/lib/versioncheck.php'; |
|
34 | +require_once __DIR__.'/lib/versioncheck.php'; |
|
35 | 35 | |
36 | 36 | try { |
37 | - require_once __DIR__ . '/lib/base.php'; |
|
37 | + require_once __DIR__.'/lib/base.php'; |
|
38 | 38 | |
39 | 39 | $systemConfig = \OC::$server->getSystemConfig(); |
40 | 40 |