Completed
Pull Request — develop-0.9 (#409)
by René
06:26
created
lib/Controller/ApiController.php 2 patches
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -88,10 +88,10 @@  discard block
 block discarded – undo
88 88
 	}
89 89
 
90 90
   	/**
91
-	* @NoAdminRequired
92
-	* @NoCSRFRequired
93
-	* @return DataResponse
94
-	*/
91
+  	 * @NoAdminRequired
92
+  	 * @NoCSRFRequired
93
+  	 * @return DataResponse
94
+  	 */
95 95
 	public function getSiteUsersAndGroups($query = '', $getGroups = true, $getUsers = true, $skipGroups = array(), $skipUsers = array()) {
96 96
 		$list = array();
97 97
 		$data = array();
@@ -128,10 +128,10 @@  discard block
 block discarded – undo
128 128
 		return new DataResponse($data, Http::STATUS_OK);
129 129
 	}
130 130
   	/**
131
-	* @NoAdminRequired
132
-	* @NoCSRFRequired
133
-	* @return Array
134
-	*/
131
+  	 * @NoAdminRequired
132
+  	 * @NoCSRFRequired
133
+  	 * @return Array
134
+  	 */
135 135
 	function convertAccessList($item) {
136 136
 		$split = Array();
137 137
 		if (strpos($item, 'user_') === 0) {
@@ -158,12 +158,12 @@  discard block
 block discarded – undo
158 158
 	}
159 159
 
160 160
   	/**
161
-	* @NoAdminRequired
162
-	* @NoCSRFRequired
163
-	* @PublicPage
164
-	* @param string $hash
165
-	* @return DataResponse
166
-	*/
161
+  	 * @NoAdminRequired
162
+  	 * @NoCSRFRequired
163
+  	 * @PublicPage
164
+  	 * @param string $hash
165
+  	 * @return DataResponse
166
+  	 */
167 167
 
168 168
 	public function getPoll($hash) {
169 169
 		if (!\OC::$server->getUserSession()->getUser() instanceof IUser) {
Please login to merge, or discard this patch.
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
 	* @return Array
134 134
 	*/
135 135
 	function convertAccessList($item) {
136
-		$split = Array();
136
+		$split = array();
137 137
 		if (strpos($item, 'user_') === 0) {
138 138
 			$user = $this->userManager->get(substr($item, 5));
139 139
 			$split = [
@@ -195,12 +195,12 @@  discard block
 block discarded – undo
195 195
 			} else {
196 196
 				$mode = 'edit';
197 197
 			}
198
-			$accessList = Array();
198
+			$accessList = array();
199 199
 			$accessType = $poll->getAccess();
200 200
 			if (!strpos('|public|hidden|registered', $accessType)) {
201 201
 				$accessList = explode(';',$accessType);
202 202
 				$accessList = array_filter($accessList);
203
-				$accessList = array_map(Array($this,'convertAccessList'), $accessList);
203
+				$accessList = array_map(array($this,'convertAccessList'), $accessList);
204 204
 				$accessType = 'select';
205 205
 			}
206 206
 
Please login to merge, or discard this patch.