Completed
Branch dev-1.5 (70e7da)
by René
03:48
created
lib/Service/CalendarService.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 		$events = [];
52 52
 
53 53
 		foreach ($this->calendars as $calendar) {
54
-			$foundEvents = $calendar->search('' ,['SUMMARY'], ['timerange' => ['start' => $from, 'end' => $to]]);
54
+			$foundEvents = $calendar->search('', ['SUMMARY'], ['timerange' => ['start' => $from, 'end' => $to]]);
55 55
 			foreach ($foundEvents as $event) {
56 56
 				array_push($events, [
57 57
 					'relatedFrom' => $from->getTimestamp(),
@@ -62,11 +62,11 @@  discard block
 block discarded – undo
62 62
 					'permissions' => $calendar->getPermissions(),
63 63
 					'eventId' => $event['id'],
64 64
 					'UID' => $event['objects'][0]['UID'][0],
65
-					'summary' => isset($event['objects'][0]['SUMMARY'][0])? $event['objects'][0]['SUMMARY'][0] : '',
66
-					'description' => isset($event['objects'][0]['DESCRIPTION'][0])? $event['objects'][0]['DESCRIPTION'][0] : '',
65
+					'summary' => isset($event['objects'][0]['SUMMARY'][0]) ? $event['objects'][0]['SUMMARY'][0] : '',
66
+					'description' => isset($event['objects'][0]['DESCRIPTION'][0]) ? $event['objects'][0]['DESCRIPTION'][0] : '',
67 67
 					'location' => isset($event['objects'][0]['LOCATION'][0]) ? $event['objects'][0]['LOCATION'][0] : '',
68 68
 					'eventFrom' => isset($event['objects'][0]['DTSTART'][0]) ? $event['objects'][0]['DTSTART'][0]->getTimestamp() : 0,
69
-					'eventTo' => isset($event['objects'][0]['DTEND'][0] ) ? $event['objects'][0]['DTEND'][0]->getTimestamp() : 0,
69
+					'eventTo' => isset($event['objects'][0]['DTEND'][0]) ? $event['objects'][0]['DTEND'][0]->getTimestamp() : 0,
70 70
 					'calDav' => $event
71 71
 				]);
72 72
 			}
Please login to merge, or discard this patch.
lib/Service/MailService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -223,7 +223,7 @@
 block discarded – undo
223 223
 			$groupMembers = array_keys($this->groupManager->displayNamesInGroup($share->getUserId()));
224 224
 
225 225
 			foreach ($groupMembers as $member) {
226
-				if ($skipUser === $member || !$this->userManager->get($member)->isEnabled() ) {
226
+				if ($skipUser === $member || !$this->userManager->get($member)->isEnabled()) {
227 227
 					continue;
228 228
 				}
229 229
 
Please login to merge, or discard this patch.
lib/Service/SystemService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -245,7 +245,7 @@
 block discarded – undo
245 245
 				if (strpos($contactGroup, $query) === 0 && !in_array($contactGroup, $foundContacts)) {
246 246
 					$foundContacts[] = $contactGroup;
247 247
 					$contactGroups[] = [
248
-						'id' => 'contactgroup_' + $contactGroup,
248
+						'id' => 'contactgroup_' +$contactGroup,
249 249
 						'user' => $contactGroup,
250 250
 						'displayName' => $contactGroup,
251 251
 						'organisation' => '',
Please login to merge, or discard this patch.
lib/Service/OptionService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -242,7 +242,7 @@
 block discarded – undo
242 242
 
243 243
 		$baseDate->setTimestamp($origin->getTimestamp());
244 244
 
245
-		for ($i=0; $i < $amount; $i++) {
245
+		for ($i = 0; $i < $amount; $i++) {
246 246
 
247 247
 			$this->option = new Option();
248 248
 			$this->option->setPollId($origin->getPollId());
Please login to merge, or discard this patch.
lib/Controller/ShareController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -201,7 +201,7 @@
 block discarded – undo
201 201
 		try {
202 202
 			$share = $this->shareService->get($token);
203 203
 			foreach ($this->systemService->getContactsGroupMembers($share->getUserId()) as $member) {
204
-				$shares[] = $this->shareService->add($share->getpollId(), 'contact', $member['user'], $member['emailAddress']) ;
204
+				$shares[] = $this->shareService->add($share->getpollId(), 'contact', $member['user'], $member['emailAddress']);
205 205
 			}
206 206
 
207 207
 			return new DataResponse(['shares' => $shares], Http::STATUS_OK);
Please login to merge, or discard this patch.