Passed
Push — master ( 13c7a9...8fcc0e )
by Christoph
15:42 queued 11s
created
lib/private/Template/IconsCacher.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -120,24 +120,24 @@  discard block
 block discarded – undo
120 120
 			$cachedVarsCssFile = $this->folder->newFile($this->fileName);
121 121
 		}
122 122
 
123
-		$icons = $this->getIconsFromCss($currentData . $css);
123
+		$icons = $this->getIconsFromCss($currentData.$css);
124 124
 
125 125
 		$data = '';
126 126
 		$list = '';
127 127
 		foreach ($icons as $icon => $url) {
128 128
 			$list .= "--$icon: url('$url');";
129
-			list($location,$color) = $this->parseUrl($url);
129
+			list($location, $color) = $this->parseUrl($url);
130 130
 			$svg = false;
131 131
 			if ($location !== '' && \file_exists($location)) {
132 132
 				$svg = \file_get_contents($location);
133 133
 			}
134 134
 			if ($svg === false) {
135
-				$this->logger->debug('Failed to get icon file ' . $location);
135
+				$this->logger->debug('Failed to get icon file '.$location);
136 136
 				$data .= "--$icon: url('$url');";
137 137
 				continue;
138 138
 			}
139 139
 			$encode = base64_encode($this->colorizeSvg($svg, $color));
140
-			$data .= '--' . $icon . ': url(data:image/svg+xml;base64,' . $encode . ');';
140
+			$data .= '--'.$icon.': url(data:image/svg+xml;base64,'.$encode.');';
141 141
 		}
142 142
 
143 143
 		if (\strlen($data) > 0 && \strlen($list) > 0) {
@@ -159,20 +159,20 @@  discard block
 block discarded – undo
159 159
 	private function parseUrl($url): array {
160 160
 		$location = '';
161 161
 		$color = '';
162
-		$base = $this->getRoutePrefix() . '/svg/';
162
+		$base = $this->getRoutePrefix().'/svg/';
163 163
 		$cleanUrl = \substr($url, \strlen($base));
164
-		if (\strpos($url, $base . 'core') === 0) {
164
+		if (\strpos($url, $base.'core') === 0) {
165 165
 			$cleanUrl = \substr($cleanUrl, \strlen('core'));
166 166
 			if (\preg_match('/\/([a-zA-Z0-9-_\~\/\.\=\:\;\+\,]+)\?color=([0-9a-fA-F]{3,6})/', $cleanUrl, $matches)) {
167
-				list(,$cleanUrl,$color) = $matches;
168
-				$location = \OC::$SERVERROOT . '/core/img/' . $cleanUrl . '.svg';
167
+				list(,$cleanUrl, $color) = $matches;
168
+				$location = \OC::$SERVERROOT.'/core/img/'.$cleanUrl.'.svg';
169 169
 			}
170 170
 		} elseif (\strpos($url, $base) === 0) {
171 171
 			if (\preg_match('/([A-z0-9\_\-]+)\/([a-zA-Z0-9-_\~\/\.\=\:\;\+\,]+)\?color=([0-9a-fA-F]{3,6})/', $cleanUrl, $matches)) {
172
-				list(,$app,$cleanUrl, $color) = $matches;
173
-				$location = \OC_App::getAppPath($app) . '/img/' . $cleanUrl . '.svg';
172
+				list(,$app, $cleanUrl, $color) = $matches;
173
+				$location = \OC_App::getAppPath($app).'/img/'.$cleanUrl.'.svg';
174 174
 				if ($app === 'settings') {
175
-					$location = \OC::$SERVERROOT . '/settings/img/' . $cleanUrl . '.svg';
175
+					$location = \OC::$SERVERROOT.'/settings/img/'.$cleanUrl.'.svg';
176 176
 				}
177 177
 			}
178 178
 		}
@@ -195,17 +195,17 @@  discard block
 block discarded – undo
195 195
 
196 196
 		// add fill (fill is not present on black elements)
197 197
 		$fillRe = '/<((circle|rect|path)((?!fill)[a-z0-9 =".\-#():;,])+)\/>/mi';
198
-		$svg = preg_replace($fillRe, '<$1 fill="#' . $color . '"/>', $svg);
198
+		$svg = preg_replace($fillRe, '<$1 fill="#'.$color.'"/>', $svg);
199 199
 
200 200
 		// replace any fill or stroke colors
201
-		$svg = preg_replace('/stroke="#([a-z0-9]{3,6})"/mi', 'stroke="#' . $color . '"', $svg);
202
-		$svg = preg_replace('/fill="#([a-z0-9]{3,6})"/mi', 'fill="#' . $color . '"', $svg);
201
+		$svg = preg_replace('/stroke="#([a-z0-9]{3,6})"/mi', 'stroke="#'.$color.'"', $svg);
202
+		$svg = preg_replace('/fill="#([a-z0-9]{3,6})"/mi', 'fill="#'.$color.'"', $svg);
203 203
 		return $svg;
204 204
 	}
205 205
 
206 206
 	private function getRoutePrefix() {
207 207
 		$frontControllerActive = (\OC::$server->getConfig()->getSystemValue('htaccess.IgnoreFrontController', false) === true || getenv('front_controller_active') === 'true');
208
-		$prefix = \OC::$WEBROOT . '/index.php';
208
+		$prefix = \OC::$WEBROOT.'/index.php';
209 209
 		if ($frontControllerActive) {
210 210
 			$prefix = \OC::$WEBROOT;
211 211
 		}
Please login to merge, or discard this patch.
lib/private/legacy/OC_Response.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,10 +40,10 @@  discard block
 block discarded – undo
40 40
 				\OC\AppFramework\Http\Request::USER_AGENT_ANDROID_MOBILE_CHROME,
41 41
 				\OC\AppFramework\Http\Request::USER_AGENT_FREEBOX,
42 42
 			])) {
43
-			header('Content-Disposition: ' . rawurlencode($type) . '; filename="' . rawurlencode($filename) . '"');
43
+			header('Content-Disposition: '.rawurlencode($type).'; filename="'.rawurlencode($filename).'"');
44 44
 		} else {
45
-			header('Content-Disposition: ' . rawurlencode($type) . '; filename*=UTF-8\'\'' . rawurlencode($filename)
46
-												 . '; filename="' . rawurlencode($filename) . '"');
45
+			header('Content-Disposition: '.rawurlencode($type).'; filename*=UTF-8\'\''.rawurlencode($filename)
46
+												 . '; filename="'.rawurlencode($filename).'"');
47 47
 		}
48 48
 	}
49 49
 
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 			. 'connect-src *; '
91 91
 			. 'object-src \'none\'; '
92 92
 			. 'base-uri \'self\'; ';
93
-		header('Content-Security-Policy:' . $policy);
93
+		header('Content-Security-Policy:'.$policy);
94 94
 
95 95
 		// Send fallback headers for installations that don't have the possibility to send
96 96
 		// custom headers on the webserver side
Please login to merge, or discard this patch.
lib/private/legacy/OC_EventSource.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 		header('X-Accel-Buffering: no');
61 61
 		$this->fallback = isset($_GET['fallback']) and $_GET['fallback'] == 'true';
62 62
 		if ($this->fallback) {
63
-			$this->fallBackId = (int)$_GET['fallback_id'];
63
+			$this->fallBackId = (int) $_GET['fallback_id'];
64 64
 			/**
65 65
 			 * FIXME: The default content-security-policy of ownCloud forbids inline
66 66
 			 * JavaScript for security reasons. IE starting on Windows 10 will
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 			 */
74 74
 			header("Content-Security-Policy: default-src 'none'; script-src 'unsafe-inline'");
75 75
 			header("Content-Type: text/html");
76
-			echo str_repeat('<span></span>' . PHP_EOL, 10); //dummy data to keep IE happy
76
+			echo str_repeat('<span></span>'.PHP_EOL, 10); //dummy data to keep IE happy
77 77
 		} else {
78 78
 			header("Content-Type: text/event-stream");
79 79
 		}
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 	 */
102 102
 	public function send($type, $data = null) {
103 103
 		if ($data and !preg_match('/^[A-Za-z0-9_]+$/', $type)) {
104
-			throw new BadMethodCallException('Type needs to be alphanumeric ('. $type .')');
104
+			throw new BadMethodCallException('Type needs to be alphanumeric ('.$type.')');
105 105
 		}
106 106
 		$this->init();
107 107
 		if (is_null($data)) {
@@ -110,13 +110,13 @@  discard block
 block discarded – undo
110 110
 		}
111 111
 		if ($this->fallback) {
112 112
 			$response = '<script type="text/javascript">window.parent.OC.EventSource.fallBackCallBack('
113
-				. $this->fallBackId . ',"' . $type . '",' . OC_JSON::encode($data) . ')</script>' . PHP_EOL;
113
+				. $this->fallBackId.',"'.$type.'",'.OC_JSON::encode($data).')</script>'.PHP_EOL;
114 114
 			echo $response;
115 115
 		} else {
116 116
 			if ($type) {
117
-				echo 'event: ' . $type . PHP_EOL;
117
+				echo 'event: '.$type.PHP_EOL;
118 118
 			}
119
-			echo 'data: ' . OC_JSON::encode($data) . PHP_EOL;
119
+			echo 'data: '.OC_JSON::encode($data).PHP_EOL;
120 120
 		}
121 121
 		echo PHP_EOL;
122 122
 		flush();
Please login to merge, or discard this patch.
lib/private/legacy/OC_Defaults.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 		$this->defaultColorPrimary = '#0082c9';
69 69
 		$this->defaultTextColorPrimary = '#ffffff';
70 70
 
71
-		$themePath = OC::$SERVERROOT . '/themes/' . OC_Util::getTheme() . '/defaults.php';
71
+		$themePath = OC::$SERVERROOT.'/themes/'.OC_Util::getTheme().'/defaults.php';
72 72
 		if (file_exists($themePath)) {
73 73
 			// prevent defaults.php from printing output
74 74
 			ob_start();
@@ -243,9 +243,9 @@  discard block
 block discarded – undo
243 243
 		if ($this->themeExist('getShortFooter')) {
244 244
 			$footer = $this->theme->getShortFooter();
245 245
 		} else {
246
-			$footer = '<a href="'. $this->getBaseUrl() . '" target="_blank"' .
247
-				' rel="noreferrer noopener">' .$this->getEntity() . '</a>'.
248
-				' – ' . $this->getSlogan();
246
+			$footer = '<a href="'.$this->getBaseUrl().'" target="_blank"'.
247
+				' rel="noreferrer noopener">'.$this->getEntity().'</a>'.
248
+				' – '.$this->getSlogan();
249 249
 		}
250 250
 
251 251
 		return $footer;
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
 		if ($this->themeExist('buildDocLinkToKey')) {
274 274
 			return $this->theme->buildDocLinkToKey($key);
275 275
 		}
276
-		return $this->getDocBaseUrl() . '/server/' . $this->defaultDocVersion . '/go.php?to=' . $key;
276
+		return $this->getDocBaseUrl().'/server/'.$this->defaultDocVersion.'/go.php?to='.$key;
277 277
 	}
278 278
 
279 279
 	/**
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
 		} else {
321 321
 			$logo = \OC::$server->getURLGenerator()->imagePath('core', 'logo/logo.png');
322 322
 		}
323
-		return $logo . '?v=' . hash('sha1', implode('.', \OCP\Util::getVersion()));
323
+		return $logo.'?v='.hash('sha1', implode('.', \OCP\Util::getVersion()));
324 324
 	}
325 325
 
326 326
 	public function getTextColorPrimary() {
Please login to merge, or discard this patch.
lib/private/legacy/OC_JSON.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 	public static function checkAppEnabled($app) {
45 45
 		if (!\OC::$server->getAppManager()->isEnabledForUser($app)) {
46 46
 			$l = \OC::$server->getL10N('lib');
47
-			self::error([ 'data' => [ 'message' => $l->t('Application is not enabled'), 'error' => 'application_not_enabled' ]]);
47
+			self::error(['data' => ['message' => $l->t('Application is not enabled'), 'error' => 'application_not_enabled']]);
48 48
 			exit();
49 49
 		}
50 50
 	}
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 			|| $twoFactorAuthManger->needsSecondFactor(\OC::$server->getUserSession()->getUser())) {
61 61
 			$l = \OC::$server->getL10N('lib');
62 62
 			http_response_code(\OCP\AppFramework\Http::STATUS_UNAUTHORIZED);
63
-			self::error([ 'data' => [ 'message' => $l->t('Authentication error'), 'error' => 'authentication_error' ]]);
63
+			self::error(['data' => ['message' => $l->t('Authentication error'), 'error' => 'authentication_error']]);
64 64
 			exit();
65 65
 		}
66 66
 	}
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 
79 79
 		if (!\OC::$server->getRequest()->passesCSRFCheck()) {
80 80
 			$l = \OC::$server->getL10N('lib');
81
-			self::error([ 'data' => [ 'message' => $l->t('Token expired. Please reload page.'), 'error' => 'token_expired' ]]);
81
+			self::error(['data' => ['message' => $l->t('Token expired. Please reload page.'), 'error' => 'token_expired']]);
82 82
 			exit();
83 83
 		}
84 84
 	}
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 	public static function checkAdminUser() {
92 92
 		if (!OC_User::isAdminUser(OC_User::getUser())) {
93 93
 			$l = \OC::$server->getL10N('lib');
94
-			self::error([ 'data' => [ 'message' => $l->t('Authentication error'), 'error' => 'authentication_error' ]]);
94
+			self::error(['data' => ['message' => $l->t('Authentication error'), 'error' => 'authentication_error']]);
95 95
 			exit();
96 96
 		}
97 97
 	}
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
 	 */
124 124
 	protected static function to_string(&$value) {
125 125
 		if ($value instanceof \OC\L10N\L10NString) {
126
-			$value = (string)$value;
126
+			$value = (string) $value;
127 127
 		}
128 128
 	}
129 129
 
Please login to merge, or discard this patch.
apps/user_ldap/lib/GroupPluginManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 		$this->respondToActions |= $respondToActions;
55 55
 
56 56
 		foreach ($this->which as $action => $v) {
57
-			if ((bool)($respondToActions & $action)) {
57
+			if ((bool) ($respondToActions & $action)) {
58 58
 				$this->which[$action] = $plugin;
59 59
 				\OC::$server->getLogger()->debug("Registered action ".$action." to plugin ".get_class($plugin), ['app' => 'user_ldap']);
60 60
 			}
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 		$plugin = $this->which[GroupInterface::COUNT_USERS];
148 148
 
149 149
 		if ($plugin) {
150
-			return $plugin->countUsersInGroup($gid,$search);
150
+			return $plugin->countUsersInGroup($gid, $search);
151 151
 		}
152 152
 		throw new \Exception('No plugin implements countUsersInGroup in this LDAP Backend.');
153 153
 	}
Please login to merge, or discard this patch.
apps/user_ldap/lib/User_LDAP.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 	 * @throws \Exception
111 111
 	 */
112 112
 	public function loginName2UserName($loginName) {
113
-		$cacheKey = 'loginName2UserName-' . $loginName;
113
+		$cacheKey = 'loginName2UserName-'.$loginName;
114 114
 		$username = $this->access->connection->getFromCache($cacheKey);
115 115
 
116 116
 		if ($username !== null) {
@@ -157,8 +157,8 @@  discard block
 block discarded – undo
157 157
 		$attrs = $this->access->userManager->getAttributes();
158 158
 		$users = $this->access->fetchUsersByLoginName($loginName, $attrs);
159 159
 		if (count($users) < 1) {
160
-			throw new NotOnLDAP('No user available for the given login name on ' .
161
-				$this->access->connection->ldapHost . ':' . $this->access->connection->ldapPort);
160
+			throw new NotOnLDAP('No user available for the given login name on '.
161
+				$this->access->connection->ldapHost.':'.$this->access->connection->ldapPort);
162 162
 		}
163 163
 		return $users[0];
164 164
 	}
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
 
183 183
 		if (!$user instanceof User) {
184 184
 			Util::writeLog('user_ldap',
185
-				'LDAP Login: Could not get user object for DN ' . $dn .
185
+				'LDAP Login: Could not get user object for DN '.$dn.
186 186
 				'. Maybe the LDAP entry has no set display name attribute?',
187 187
 				ILogger::WARN);
188 188
 			return false;
@@ -217,13 +217,13 @@  discard block
 block discarded – undo
217 217
 		$user = $this->access->userManager->get($uid);
218 218
 
219 219
 		if (!$user instanceof User) {
220
-			throw new \Exception('LDAP setPassword: Could not get user object for uid ' . $uid .
220
+			throw new \Exception('LDAP setPassword: Could not get user object for uid '.$uid.
221 221
 				'. Maybe the LDAP entry has no set display name attribute?');
222 222
 		}
223 223
 		if ($user->getUsername() !== false && $this->access->setPassword($user->getDN(), $password)) {
224 224
 			$ldapDefaultPPolicyDN = $this->access->connection->ldapDefaultPPolicyDN;
225 225
 			$turnOnPasswordChange = $this->access->connection->turnOnPasswordChange;
226
-			if (!empty($ldapDefaultPPolicyDN) && ((int)$turnOnPasswordChange === 1)) {
226
+			if (!empty($ldapDefaultPPolicyDN) && ((int) $turnOnPasswordChange === 1)) {
227 227
 				//remove last password expiry warning if any
228 228
 				$notification = $this->notificationManager->createNotification();
229 229
 				$notification->setApp('user_ldap')
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
 		}
264 264
 		$filter = $this->access->combineFilterWithAnd([
265 265
 			$this->access->connection->ldapUserFilter,
266
-			$this->access->connection->ldapUserDisplayName . '=*',
266
+			$this->access->connection->ldapUserDisplayName.'=*',
267 267
 			$this->access->getFilterPartForUserSearch($search)
268 268
 		]);
269 269
 
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
 			$this->access->userManager->getAttributes(true),
277 277
 			$limit, $offset);
278 278
 		$ldap_users = $this->access->nextcloudUserNames($ldap_users);
279
-		Util::writeLog('user_ldap', 'getUsers: '.count($ldap_users). ' Users found', ILogger::DEBUG);
279
+		Util::writeLog('user_ldap', 'getUsers: '.count($ldap_users).' Users found', ILogger::DEBUG);
280 280
 
281 281
 		$this->access->connection->writeToCache($cachekey, $ldap_users);
282 282
 		return $ldap_users;
@@ -299,10 +299,10 @@  discard block
 block discarded – undo
299 299
 			return false;
300 300
 		}
301 301
 		$uid = $user instanceof User ? $user->getUsername() : $user->getOCName();
302
-		$cacheKey = 'userExistsOnLDAP' . $uid;
302
+		$cacheKey = 'userExistsOnLDAP'.$uid;
303 303
 		$userExists = $this->access->connection->getFromCache($cacheKey);
304 304
 		if (!is_null($userExists)) {
305
-			return (bool)$userExists;
305
+			return (bool) $userExists;
306 306
 		}
307 307
 
308 308
 		$dn = $user->getDN();
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
 	public function userExists($uid) {
349 349
 		$userExists = $this->access->connection->getFromCache('userExists'.$uid);
350 350
 		if (!is_null($userExists)) {
351
-			return (bool)$userExists;
351
+			return (bool) $userExists;
352 352
 		}
353 353
 		//getting dn, if false the user does not exist. If dn, he may be mapped only, requires more checking.
354 354
 		$user = $this->access->userManager->get($uid);
@@ -379,13 +379,13 @@  discard block
 block discarded – undo
379 379
 		}
380 380
 
381 381
 		$marked = $this->ocConfig->getUserValue($uid, 'user_ldap', 'isDeleted', 0);
382
-		if ((int)$marked === 0) {
382
+		if ((int) $marked === 0) {
383 383
 			\OC::$server->getLogger()->notice(
384
-				'User '.$uid . ' is not marked as deleted, not cleaning up.',
384
+				'User '.$uid.' is not marked as deleted, not cleaning up.',
385 385
 				['app' => 'user_ldap']);
386 386
 			return false;
387 387
 		}
388
-		\OC::$server->getLogger()->info('Cleaning up after user ' . $uid,
388
+		\OC::$server->getLogger()->info('Cleaning up after user '.$uid,
389 389
 			['app' => 'user_ldap']);
390 390
 
391 391
 		$this->access->getUserMapper()->unmap($uid); // we don't emit unassign signals here, since it is implicit to delete signals fired from core
@@ -422,7 +422,7 @@  discard block
 block discarded – undo
422 422
 		if ($user instanceof User || $user instanceof OfflineUser) {
423 423
 			$path = $user->getHomePath() ?: false;
424 424
 		} else {
425
-			throw new NoUserException($uid . ' is not a valid user anymore');
425
+			throw new NoUserException($uid.' is not a valid user anymore');
426 426
 		}
427 427
 
428 428
 		$this->access->cacheUserHome($uid, $path);
@@ -530,12 +530,12 @@  discard block
 block discarded – undo
530 530
 	 * compared with \OC\User\Backend::CREATE_USER etc.
531 531
 	 */
532 532
 	public function implementsActions($actions) {
533
-		return (bool)((Backend::CHECK_PASSWORD
533
+		return (bool) ((Backend::CHECK_PASSWORD
534 534
 			| Backend::GET_HOME
535 535
 			| Backend::GET_DISPLAYNAME
536 536
 			| (($this->access->connection->ldapUserAvatarRule !== 'none') ? Backend::PROVIDE_AVATAR : 0)
537 537
 			| Backend::COUNT_USERS
538
-			| (((int)$this->access->connection->turnOnPasswordChange === 1)? Backend::SET_PASSWORD :0)
538
+			| (((int) $this->access->connection->turnOnPasswordChange === 1) ? Backend::SET_PASSWORD : 0)
539 539
 			| $this->userPluginManager->getImplementedActions())
540 540
 			& $actions);
541 541
 	}
Please login to merge, or discard this patch.
apps/user_ldap/lib/User/DeletedUsersIndex.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@
 block discarded – undo
114 114
 			return;
115 115
 		}
116 116
 		$this->config->setUserValue($ocName, 'user_ldap', 'isDeleted', '1');
117
-		$this->config->setUserValue($ocName, 'user_ldap', 'foundDeleted', (string)time());
117
+		$this->config->setUserValue($ocName, 'user_ldap', 'foundDeleted', (string) time());
118 118
 		$this->deletedUsers = null;
119 119
 	}
120 120
 }
Please login to merge, or discard this patch.
apps/user_ldap/lib/User/Manager.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -194,8 +194,8 @@  discard block
 block discarded – undo
194 194
 		}
195 195
 
196 196
 		$attributes = array_reduce($attributes,
197
-			function ($list, $attribute) {
198
-				$attribute = strtolower(trim((string)$attribute));
197
+			function($list, $attribute) {
198
+				$attribute = strtolower(trim((string) $attribute));
199 199
 				if (!empty($attribute) && !in_array($attribute, $list)) {
200 200
 					$list[] = $attribute;
201 201
 				}
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
 	public function isDeletedUser($id) {
217 217
 		$isDeleted = $this->ocConfig->getUserValue(
218 218
 			$id, 'user_ldap', 'isDeleted', 0);
219
-		return (int)$isDeleted === 1;
219
+		return (int) $isDeleted === 1;
220 220
 	}
221 221
 
222 222
 	/**
Please login to merge, or discard this patch.