Passed
Pull Request — master (#549)
by René
21:09 queued 16:32
created
lib/Controller/ApiController.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -236,12 +236,12 @@
 block discarded – undo
236 236
 	}
237 237
 
238 238
 	/**
239
-	* Read all votes of a poll based on the poll id
240
-	* @NoAdminRequired
241
-	* @NoCSRFRequired
242
-	* @param Integer $pollId
243
-	* @return Array
244
-	*/
239
+	 * Read all votes of a poll based on the poll id
240
+	 * @NoAdminRequired
241
+	 * @NoCSRFRequired
242
+	 * @param Integer $pollId
243
+	 * @return Array
244
+	 */
245 245
 	public function getVotes($pollId, $anonymize = true) {
246 246
 		$currentUser = \OC::$server->getUserSession()->getUser()->getUID();
247 247
 		$votes = $this->voteMapper->findByPoll($pollId);
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
 	 * @return Boolean
134 134
 	 */
135 135
 	private function checkUserAccess($accessList) {
136
-		foreach ($accessList as $accessItem ) {
136
+		foreach ($accessList as $accessItem) {
137 137
 			if ($accessItem['type'] === 'user' && $accessItem['id'] === \OC::$server->getUserSession()->getUser()->getUID()) {
138 138
 				return true;
139 139
 			}
@@ -148,8 +148,8 @@  discard block
 block discarded – undo
148 148
 	 * @return Boolean
149 149
 	 */
150 150
 	private function checkGroupAccess($accessList) {
151
-		foreach ($accessList as $accessItem ) {
152
-			if ($accessItem['type'] === 'group' && $this->groupManager->isInGroup(\OC::$server->getUserSession()->getUser()->getUID(),$accessItem['id'])) {
151
+		foreach ($accessList as $accessItem) {
152
+			if ($accessItem['type'] === 'group' && $this->groupManager->isInGroup(\OC::$server->getUserSession()->getUser()->getUID(), $accessItem['id'])) {
153 153
 				return true;
154 154
 			}
155 155
 		}
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
 
223 223
 		foreach ($votes as $element) {
224 224
 			if (!array_key_exists($element->getUserId(), $anonList)) {
225
-				$anonList[$element->getUserId()] = 'Anonymous ' . ++$i ;
225
+				$anonList[$element->getUserId()] = 'Anonymous ' . ++$i;
226 226
 			}
227 227
 		}
228 228
 
Please login to merge, or discard this patch.