Passed
Push — master ( 323b2c...867dea )
by Roeland
10:13 queued 12s
created
apps/sharebymail/composer/composer/autoload_psr4.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,5 +6,5 @@
 block discarded – undo
6 6
 $baseDir = $vendorDir;
7 7
 
8 8
 return array(
9
-    'OCA\\ShareByMail\\' => array($baseDir . '/../lib'),
9
+    'OCA\\ShareByMail\\' => array($baseDir.'/../lib'),
10 10
 );
Please login to merge, or discard this patch.
apps/sharebymail/composer/composer/autoload_classmap.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -6,11 +6,11 @@
 block discarded – undo
6 6
 $baseDir = $vendorDir;
7 7
 
8 8
 return array(
9
-    'OCA\\ShareByMail\\Activity' => $baseDir . '/../lib/Activity.php',
10
-    'OCA\\ShareByMail\\AppInfo\\Application' => $baseDir . '/../lib/AppInfo/Application.php',
11
-    'OCA\\ShareByMail\\Capabilities' => $baseDir . '/../lib/Capabilities.php',
12
-    'OCA\\ShareByMail\\Settings' => $baseDir . '/../lib/Settings.php',
13
-    'OCA\\ShareByMail\\Settings\\Admin' => $baseDir . '/../lib/Settings/Admin.php',
14
-    'OCA\\ShareByMail\\Settings\\SettingsManager' => $baseDir . '/../lib/Settings/SettingsManager.php',
15
-    'OCA\\ShareByMail\\ShareByMailProvider' => $baseDir . '/../lib/ShareByMailProvider.php',
9
+    'OCA\\ShareByMail\\Activity' => $baseDir.'/../lib/Activity.php',
10
+    'OCA\\ShareByMail\\AppInfo\\Application' => $baseDir.'/../lib/AppInfo/Application.php',
11
+    'OCA\\ShareByMail\\Capabilities' => $baseDir.'/../lib/Capabilities.php',
12
+    'OCA\\ShareByMail\\Settings' => $baseDir.'/../lib/Settings.php',
13
+    'OCA\\ShareByMail\\Settings\\Admin' => $baseDir.'/../lib/Settings/Admin.php',
14
+    'OCA\\ShareByMail\\Settings\\SettingsManager' => $baseDir.'/../lib/Settings/SettingsManager.php',
15
+    'OCA\\ShareByMail\\ShareByMailProvider' => $baseDir.'/../lib/ShareByMailProvider.php',
16 16
 );
Please login to merge, or discard this patch.
apps/updatenotification/composer/autoload.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,6 +2,6 @@
 block discarded – undo
2 2
 
3 3
 // autoload.php @generated by Composer
4 4
 
5
-require_once __DIR__ . '/composer/autoload_real.php';
5
+require_once __DIR__.'/composer/autoload_real.php';
6 6
 
7 7
 return ComposerAutoloaderInitUpdateNotification::getLoader();
Please login to merge, or discard this patch.
apps/updatenotification/composer/composer/autoload_psr4.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,5 +6,5 @@
 block discarded – undo
6 6
 $baseDir = $vendorDir;
7 7
 
8 8
 return array(
9
-    'OCA\\UpdateNotification\\' => array($baseDir . '/../lib'),
9
+    'OCA\\UpdateNotification\\' => array($baseDir.'/../lib'),
10 10
 );
Please login to merge, or discard this patch.
apps/files_versions/composer/autoload.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,6 +2,6 @@
 block discarded – undo
2 2
 
3 3
 // autoload.php @generated by Composer
4 4
 
5
-require_once __DIR__ . '/composer/autoload_real.php';
5
+require_once __DIR__.'/composer/autoload_real.php';
6 6
 
7 7
 return ComposerAutoloaderInitFiles_Versions::getLoader();
Please login to merge, or discard this patch.
apps/files_versions/composer/composer/autoload_psr4.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,5 +6,5 @@
 block discarded – undo
6 6
 $baseDir = $vendorDir;
7 7
 
8 8
 return array(
9
-    'OCA\\Files_Versions\\' => array($baseDir . '/../lib'),
9
+    'OCA\\Files_Versions\\' => array($baseDir.'/../lib'),
10 10
 );
Please login to merge, or discard this patch.
lib/private/Collaboration/Collaborators/SearchResult.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -37,13 +37,13 @@  discard block
 block discarded – undo
37 37
 
38 38
 	public function addResultSet(SearchResultType $type, array $matches, array $exactMatches = null) {
39 39
 		$type = $type->getLabel();
40
-		if(!isset($this->result[$type])) {
40
+		if (!isset($this->result[$type])) {
41 41
 			$this->result[$type] = [];
42 42
 			$this->result['exact'][$type] = [];
43 43
 		}
44 44
 
45 45
 		$this->result[$type] = array_merge($this->result[$type], $matches);
46
-		if(is_array($exactMatches)) {
46
+		if (is_array($exactMatches)) {
47 47
 			$this->result['exact'][$type] = array_merge($this->result['exact'][$type], $exactMatches);
48 48
 		}
49 49
 	}
@@ -58,12 +58,12 @@  discard block
 block discarded – undo
58 58
 
59 59
 	public function hasResult(SearchResultType $type, $collaboratorId) {
60 60
 		$type = $type->getLabel();
61
-		if(!isset($this->result[$type])) {
61
+		if (!isset($this->result[$type])) {
62 62
 			return false;
63 63
 		}
64 64
 
65 65
 		$resultArrays = [$this->result['exact'][$type], $this->result[$type]];
66
-		foreach($resultArrays as $resultArray) {
66
+		foreach ($resultArrays as $resultArray) {
67 67
 			foreach ($resultArray as $result) {
68 68
 				if ($result['value']['shareWith'] === $collaboratorId) {
69 69
 					return true;
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 	public function unsetResult(SearchResultType $type) {
82 82
 		$type = $type->getLabel();
83 83
 		$this->result[$type] = [];
84
-		if(isset($this->result['exact'][$type])) {
84
+		if (isset($this->result['exact'][$type])) {
85 85
 			$this->result['exact'][$type] = [];
86 86
 		}
87 87
 	}
Please login to merge, or discard this patch.
apps/user_ldap/appinfo/app.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
 $helper = new \OCA\User_LDAP\Helper(\OC::$server->getConfig());
40 40
 $configPrefixes = $helper->getServerConfigurationPrefixes(true);
41
-if(count($configPrefixes) > 0) {
41
+if (count($configPrefixes) > 0) {
42 42
 	$ldapWrapper = new OCA\User_LDAP\LDAP();
43 43
 	$ocConfig = \OC::$server->getConfig();
44 44
 	$notificationManager = \OC::$server->getNotificationManager();
@@ -58,10 +58,10 @@  discard block
 block discarded – undo
58 58
 	$userPluginManager = \OC::$server->query('LDAPUserPluginManager');
59 59
 	$groupPluginManager = \OC::$server->query('LDAPGroupPluginManager');
60 60
 
61
-	$userBackend  = new OCA\User_LDAP\User_Proxy(
61
+	$userBackend = new OCA\User_LDAP\User_Proxy(
62 62
 		$configPrefixes, $ldapWrapper, $ocConfig, $notificationManager, $userSession, $userPluginManager
63 63
 	);
64
-	$groupBackend  = new OCA\User_LDAP\Group_Proxy($configPrefixes, $ldapWrapper, $groupPluginManager);
64
+	$groupBackend = new OCA\User_LDAP\Group_Proxy($configPrefixes, $ldapWrapper, $groupPluginManager);
65 65
 	// register user backend
66 66
 	OC_User::useBackend($userBackend);
67 67
 
Please login to merge, or discard this patch.
apps/user_ldap/lib/User_Proxy.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -53,11 +53,11 @@  discard block
 block discarded – undo
53 53
 		INotificationManager $notificationManager, IUserSession $userSession,
54 54
 								UserPluginManager $userPluginManager) {
55 55
 		parent::__construct($ldap);
56
-		foreach($serverConfigPrefixes as $configPrefix) {
56
+		foreach ($serverConfigPrefixes as $configPrefix) {
57 57
 			$this->backends[$configPrefix] =
58 58
 				new User_LDAP($this->getAccess($configPrefix), $ocConfig, $notificationManager, $userSession, $userPluginManager);
59 59
 
60
-			if(is_null($this->refBackend)) {
60
+			if (is_null($this->refBackend)) {
61 61
 				$this->refBackend = &$this->backends[$configPrefix];
62 62
 			}
63 63
 		}
@@ -72,13 +72,13 @@  discard block
 block discarded – undo
72 72
 	 */
73 73
 	protected function walkBackends($uid, $method, $parameters) {
74 74
 		$cacheKey = $this->getUserCacheKey($uid);
75
-		foreach($this->backends as $configPrefix => $backend) {
75
+		foreach ($this->backends as $configPrefix => $backend) {
76 76
 			$instance = $backend;
77
-			if(!method_exists($instance, $method)
77
+			if (!method_exists($instance, $method)
78 78
 				&& method_exists($this->getAccess($configPrefix), $method)) {
79 79
 				$instance = $this->getAccess($configPrefix);
80 80
 			}
81
-			if($result = call_user_func_array(array($instance, $method), $parameters)) {
81
+			if ($result = call_user_func_array(array($instance, $method), $parameters)) {
82 82
 				$this->writeToCache($cacheKey, $configPrefix);
83 83
 				return $result;
84 84
 			}
@@ -98,22 +98,22 @@  discard block
 block discarded – undo
98 98
 		$cacheKey = $this->getUserCacheKey($uid);
99 99
 		$prefix = $this->getFromCache($cacheKey);
100 100
 		//in case the uid has been found in the past, try this stored connection first
101
-		if(!is_null($prefix)) {
102
-			if(isset($this->backends[$prefix])) {
101
+		if (!is_null($prefix)) {
102
+			if (isset($this->backends[$prefix])) {
103 103
 				$instance = $this->backends[$prefix];
104
-				if(!method_exists($instance, $method)
104
+				if (!method_exists($instance, $method)
105 105
 					&& method_exists($this->getAccess($prefix), $method)) {
106 106
 					$instance = $this->getAccess($prefix);
107 107
 				}
108 108
 				$result = call_user_func_array(array($instance, $method), $parameters);
109
-				if($result === $passOnWhen) {
109
+				if ($result === $passOnWhen) {
110 110
 					//not found here, reset cache to null if user vanished
111 111
 					//because sometimes methods return false with a reason
112 112
 					$userExists = call_user_func_array(
113 113
 						array($this->backends[$prefix], 'userExists'),
114 114
 						array($uid)
115 115
 					);
116
-					if(!$userExists) {
116
+					if (!$userExists) {
117 117
 						$this->writeToCache($cacheKey, null);
118 118
 					}
119 119
 				}
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
 	public function getUsers($search = '', $limit = 10, $offset = 0) {
156 156
 		//we do it just as the /OC_User implementation: do not play around with limit and offset but ask all backends
157 157
 		$users = array();
158
-		foreach($this->backends as $backend) {
158
+		foreach ($this->backends as $backend) {
159 159
 			$backendUsers = $backend->getUsers($search, $limit, $offset);
160 160
 			if (is_array($backendUsers)) {
161 161
 				$users = array_merge($users, $backendUsers);
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
 	 * @return string|false
204 204
 	 */
205 205
 	public function loginName2UserName($loginName) {
206
-		$id = 'LOGINNAME,' . $loginName;
206
+		$id = 'LOGINNAME,'.$loginName;
207 207
 		return $this->handleRequest($id, 'loginName2UserName', array($loginName));
208 208
 	}
209 209
 	
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
 	 * @return string|false with the username
215 215
 	 */
216 216
 	public function dn2UserName($dn) {
217
-		$id = 'DN,' . $dn;
217
+		$id = 'DN,'.$dn;
218 218
 		return $this->handleRequest($id, 'dn2UserName', array($dn));
219 219
 	}
220 220
 
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
 	public function getDisplayNames($search = '', $limit = null, $offset = null) {
267 267
 		//we do it just as the /OC_User implementation: do not play around with limit and offset but ask all backends
268 268
 		$users = array();
269
-		foreach($this->backends as $backend) {
269
+		foreach ($this->backends as $backend) {
270 270
 			$backendUsers = $backend->getDisplayNames($search, $limit, $offset);
271 271
 			if (is_array($backendUsers)) {
272 272
 				$users = $users + $backendUsers;
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
 	 */
311 311
 	public function countUsers() {
312 312
 		$users = false;
313
-		foreach($this->backends as $backend) {
313
+		foreach ($this->backends as $backend) {
314 314
 			$backendUsers = $backend->countUsers();
315 315
 			if ($backendUsers !== false) {
316 316
 				$users += $backendUsers;
@@ -345,6 +345,6 @@  discard block
 block discarded – undo
345 345
 	 * @return bool
346 346
 	 */
347 347
 	public function createUser($username, $password) {
348
-		return $this->handleRequest($username, 'createUser', array($username,$password));
348
+		return $this->handleRequest($username, 'createUser', array($username, $password));
349 349
 	}
350 350
 }
Please login to merge, or discard this patch.