Passed
Push — master ( b291d9...301144 )
by Roeland
10:52
created
apps/user_ldap/lib/Command/CheckUser.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -91,9 +91,9 @@  discard block
 block discarded – undo
91 91
 			$this->isAllowed($input->getOption('force'));
92 92
 			$this->confirmUserIsMapped($uid);
93 93
 			$exists = $this->backend->userExistsOnLDAP($uid);
94
-			if($exists === true) {
94
+			if ($exists === true) {
95 95
 				$output->writeln('The user is still available on LDAP.');
96
-				if($input->getOption('update')) {
96
+				if ($input->getOption('update')) {
97 97
 					$this->updateUser($uid, $output);
98 98
 				}
99 99
 				return;
@@ -102,9 +102,9 @@  discard block
 block discarded – undo
102 102
 			$this->dui->markUser($uid);
103 103
 			$output->writeln('The user does not exists on LDAP anymore.');
104 104
 			$output->writeln('Clean up the user\'s remnants by: ./occ user:delete "'
105
-				. $uid . '"');
105
+				. $uid.'"');
106 106
 		} catch (\Exception $e) {
107
-			$output->writeln('<error>' . $e->getMessage(). '</error>');
107
+			$output->writeln('<error>'.$e->getMessage().'</error>');
108 108
 		}
109 109
 	}
110 110
 
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
 	 * @return true
130 130
 	 */
131 131
 	protected function isAllowed($force) {
132
-		if($this->helper->haveDisabledConfigurations() && !$force) {
132
+		if ($this->helper->haveDisabledConfigurations() && !$force) {
133 133
 			throw new \Exception('Cannot check user existence, because '
134 134
 				. 'disabled LDAP configurations are present.');
135 135
 		}
@@ -149,12 +149,12 @@  discard block
 block discarded – undo
149 149
 			$avatarAttributes = $access->getConnection()->resolveRule('avatar');
150 150
 			$result = $access->search('objectclass=*', [$user->getDN()], $attrs, 1, 0);
151 151
 			foreach ($result[0] as $attribute => $valueSet) {
152
-				$output->writeln('  ' . $attribute . ': ');
152
+				$output->writeln('  '.$attribute.': ');
153 153
 				foreach ($valueSet as $value) {
154 154
 					if (in_array($attribute, $avatarAttributes)) {
155 155
 						$value = '{ImageData}';
156 156
 					}
157
-					$output->writeln('    ' . $value);
157
+					$output->writeln('    '.$value);
158 158
 				}
159 159
 			}
160 160
 			$access->batchApplyUserAttributes($result);
Please login to merge, or discard this patch.