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/Controller/CommentApiController.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,8 +53,8 @@
 block discarded – undo
53 53
 		parent::__construct($appName,
54 54
 			$request,
55 55
 			'POST, GET, DELETE',
56
-            'Authorization, Content-Type, Accept',
57
-            1728000);
56
+			'Authorization, Content-Type, Accept',
57
+			1728000);
58 58
 		$this->commentService = $commentService;
59 59
 	}
60 60
 
Please login to merge, or discard this patch.
lib/Controller/OptionApiController.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,8 @@
 block discarded – undo
55 55
 		parent::__construct($appName,
56 56
 			$request,
57 57
 			'POST, PUT, GET, DELETE',
58
-            'Authorization, Content-Type, Accept',
59
-            1728000);
58
+			'Authorization, Content-Type, Accept',
59
+			1728000);
60 60
 		$this->optionService = $optionService;
61 61
 	}
62 62
 
Please login to merge, or discard this patch.
lib/Service/PollService.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,8 +67,8 @@
 block discarded – undo
67 67
  	 * PollController constructor.
68 68
  	 * @param PollMapper $pollMapper
69 69
  	 * @param Poll $poll
70
-	 * @param VoteMapper $voteMapper
71
-	 * @param Vote $vote
70
+ 	 * @param VoteMapper $voteMapper
71
+ 	 * @param Vote $vote
72 72
  	 * @param LogService $logService
73 73
  	 * @param MailService $mailService
74 74
  	 * @param Acl $acl
Please login to merge, or discard this patch.
lib/Service/SystemService.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -82,12 +82,12 @@  discard block
 block discarded – undo
82 82
 
83 83
 
84 84
 	 /**
85
- 	 * Get a list of users
86
- 	 * @NoAdminRequired
87
- 	 * @param string $query
88
- 	 * @param array $skip - usernames to skip in return array
89
- 	 * @return Array
90
- 	 */
85
+	  * Get a list of users
86
+	  * @NoAdminRequired
87
+	  * @param string $query
88
+	  * @param array $skip - usernames to skip in return array
89
+	  * @return Array
90
+	  */
91 91
 	 public function getSiteUsers($query = '', $skip = array()) {
92 92
 		 $users = array();
93 93
 		 foreach ($this->userManager->searchDisplayName($query) as $user) {
@@ -112,12 +112,12 @@  discard block
 block discarded – undo
112 112
 	 }
113 113
 
114 114
 	 /**
115
- 	 * Get a list of user groups
116
- 	 * @NoAdminRequired
117
- 	 * @param string $query
118
- 	 * @param array $skip - group names to skip in return array
119
- 	 * @return Array
120
- 	 */
115
+	  * Get a list of user groups
116
+	  * @NoAdminRequired
117
+	  * @param string $query
118
+	  * @param array $skip - group names to skip in return array
119
+	  * @return Array
120
+	  */
121 121
 	 public function getSiteGroups($query = '', $skip = array()) {
122 122
 		$groups = array();
123 123
 		foreach ($this->groupManager->search($query) as $group) {
Please login to merge, or discard this 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/Controller/SystemController.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -53,23 +53,23 @@
 block discarded – undo
53 53
 	}
54 54
 
55 55
 	 /**
56
- 	 * Get a list of users
57
- 	 * @NoAdminRequired
58
- 	 * @param string $query
59
- 	 * @param array $skipUsers - usernames to skip in return array
60
-	 * @return DataResponse
61
- 	 */
56
+	  * Get a list of users
57
+	  * @NoAdminRequired
58
+	  * @param string $query
59
+	  * @param array $skipUsers - usernames to skip in return array
60
+	  * @return DataResponse
61
+	  */
62 62
 	 public function getSiteUsers($query = '', $skipUsers = array()) {
63 63
 		 return new DataResponse(['users' => $this->systemService->getSiteUsers($query, $skipUsers)], Http::STATUS_OK);
64 64
 	 }
65 65
 
66 66
 	 /**
67
- 	 * Get a list of user groups
68
- 	 * @NoAdminRequired
69
- 	 * @param string $query
70
- 	 * @param array $skipGroups - group names to skip in return array
71
-	 * @return DataResponse
72
- 	 */
67
+	  * Get a list of user groups
68
+	  * @NoAdminRequired
69
+	  * @param string $query
70
+	  * @param array $skipGroups - group names to skip in return array
71
+	  * @return DataResponse
72
+	  */
73 73
 	 public function getSiteGroups($query = '', $skipGroups = array()) {
74 74
 		 return new DataResponse(['groups' => $this->systemService->getSiteGroups($query, $skipGroups)], Http::STATUS_OK);
75 75
 	 }
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.