Passed
Push — master ( 8d52a3...b5b8a1 )
by Morris
11:55 queued 10s
created
apps/dav/lib/Connector/Sabre/CommentPropertiesPlugin.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 		}
98 98
 
99 99
 		$propFind->handle(self::PROPERTY_NAME_COUNT, function() use ($node) {
100
-			return $this->commentsManager->getNumberOfCommentsForObject('files', (string)$node->getId());
100
+			return $this->commentsManager->getNumberOfCommentsForObject('files', (string) $node->getId());
101 101
 		});
102 102
 
103 103
 		$propFind->handle(self::PROPERTY_NAME_HREF, function() use ($node) {
@@ -129,13 +129,13 @@  discard block
 block discarded – undo
129 129
 	 * @return mixed|string
130 130
 	 */
131 131
 	public function getCommentsLink(Node $node) {
132
-		$href =  $this->server->getBaseUri();
132
+		$href = $this->server->getBaseUri();
133 133
 		$entryPoint = strpos($href, '/remote.php/');
134
-		if($entryPoint === false) {
134
+		if ($entryPoint === false) {
135 135
 			// in case we end up somewhere else, unexpectedly.
136 136
 			return null;
137 137
 		}
138
-		$commentsPart = 'dav/comments/files/' . rawurldecode($node->getId());
138
+		$commentsPart = 'dav/comments/files/'.rawurldecode($node->getId());
139 139
 		$href = substr_replace($href, $commentsPart, $entryPoint + strlen('/remote.php/'));
140 140
 		return $href;
141 141
 	}
@@ -149,13 +149,13 @@  discard block
 block discarded – undo
149 149
 	 */
150 150
 	public function getUnreadCount(Node $node) {
151 151
 		$user = $this->userSession->getUser();
152
-		if(is_null($user)) {
152
+		if (is_null($user)) {
153 153
 			return null;
154 154
 		}
155 155
 
156
-		$lastRead = $this->commentsManager->getReadMark('files', (string)$node->getId(), $user);
156
+		$lastRead = $this->commentsManager->getReadMark('files', (string) $node->getId(), $user);
157 157
 
158
-		return $this->commentsManager->getNumberOfCommentsForObject('files', (string)$node->getId(), $lastRead);
158
+		return $this->commentsManager->getNumberOfCommentsForObject('files', (string) $node->getId(), $lastRead);
159 159
 	}
160 160
 
161 161
 }
Please login to merge, or discard this patch.
apps/dav/lib/CalDAV/Search/Xml/Filter/OffsetFilter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,9 +37,9 @@
 block discarded – undo
37 37
 	static function xmlDeserialize(Reader $reader) {
38 38
 		$value = $reader->parseInnerTree();
39 39
 		if (!is_int($value) && !is_string($value)) {
40
-			throw new BadRequest('The {' . SearchPlugin::NS_Nextcloud . '}offset has illegal value');
40
+			throw new BadRequest('The {'.SearchPlugin::NS_Nextcloud.'}offset has illegal value');
41 41
 		}
42 42
 
43
-		return (int)$value;
43
+		return (int) $value;
44 44
 	}
45 45
 }
46 46
\ No newline at end of file
Please login to merge, or discard this patch.
apps/dav/lib/CalDAV/Search/Xml/Filter/LimitFilter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,9 +37,9 @@
 block discarded – undo
37 37
 	static function xmlDeserialize(Reader $reader) {
38 38
 		$value = $reader->parseInnerTree();
39 39
 		if (!is_int($value) && !is_string($value)) {
40
-			throw new BadRequest('The {' . SearchPlugin::NS_Nextcloud . '}limit has illegal value');
40
+			throw new BadRequest('The {'.SearchPlugin::NS_Nextcloud.'}limit has illegal value');
41 41
 		}
42 42
 
43
-		return (int)$value;
43
+		return (int) $value;
44 44
 	}
45 45
 }
46 46
\ No newline at end of file
Please login to merge, or discard this patch.
apps/files_trashbin/lib/Expiration.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 	/** @var bool */
48 48
 	private $canPurgeToSaveSpace;
49 49
 
50
-	public function __construct(IConfig $config,ITimeFactory $timeFactory){
50
+	public function __construct(IConfig $config, ITimeFactory $timeFactory) {
51 51
 		$this->timeFactory = $timeFactory;
52 52
 		$this->retentionObligation = $config->getSystemValue('trashbin_retention_obligation', 'auto');
53 53
 
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 	 * Is trashbin expiration enabled
61 61
 	 * @return bool
62 62
 	 */
63
-	public function isEnabled(){
63
+	public function isEnabled() {
64 64
 		return $this->retentionObligation !== 'disabled';
65 65
 	}
66 66
 
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 	 * @param bool $quotaExceeded
71 71
 	 * @return bool
72 72
 	 */
73
-	public function isExpired($timestamp, $quotaExceeded = false){
73
+	public function isExpired($timestamp, $quotaExceeded = false) {
74 74
 		// No expiration if disabled
75 75
 		if (!$this->isEnabled()) {
76 76
 			return false;
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 		$time = $this->timeFactory->getTime();
85 85
 		// Never expire dates in future e.g. misconfiguration or negative time
86 86
 		// adjustment
87
-		if ($time<$timestamp) {
87
+		if ($time < $timestamp) {
88 88
 			return false;
89 89
 		}
90 90
 
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
 		return $maxAge;
120 120
 	}
121 121
 
122
-	private function parseRetentionObligation(){
122
+	private function parseRetentionObligation() {
123 123
 		$splitValues = explode(',', $this->retentionObligation);
124 124
 		if (!isset($splitValues[0])) {
125 125
 			$minValue = self::DEFAULT_RETENTION_OBLIGATION;
@@ -142,13 +142,13 @@  discard block
 block discarded – undo
142 142
 			$this->canPurgeToSaveSpace = true;
143 143
 		} elseif ($minValue !== 'auto' && $maxValue === 'auto') {
144 144
 			// Keep for X days but delete anytime if space needed
145
-			$this->minAge = (int)$minValue;
145
+			$this->minAge = (int) $minValue;
146 146
 			$this->maxAge = self::NO_OBLIGATION;
147 147
 			$this->canPurgeToSaveSpace = true;
148 148
 		} elseif ($minValue === 'auto' && $maxValue !== 'auto') {
149 149
 			// Delete anytime if space needed, Delete all older than max automatically
150 150
 			$this->minAge = self::NO_OBLIGATION;
151
-			$this->maxAge = (int)$maxValue;
151
+			$this->maxAge = (int) $maxValue;
152 152
 			$this->canPurgeToSaveSpace = true;
153 153
 		} elseif ($minValue !== 'auto' && $maxValue !== 'auto') {
154 154
 			// Delete all older than max OR older than min if space needed
@@ -158,8 +158,8 @@  discard block
 block discarded – undo
158 158
 				$maxValue = $minValue;
159 159
 			}
160 160
 
161
-			$this->minAge = (int)$minValue;
162
-			$this->maxAge = (int)$maxValue;
161
+			$this->minAge = (int) $minValue;
162
+			$this->maxAge = (int) $maxValue;
163 163
 			$this->canPurgeToSaveSpace = false;
164 164
 		}
165 165
 	}
Please login to merge, or discard this patch.
apps/files_versions/lib/Expiration.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 	/** @var bool */
46 46
 	private $canPurgeToSaveSpace;
47 47
 
48
-	public function __construct(IConfig $config,ITimeFactory $timeFactory){
48
+	public function __construct(IConfig $config, ITimeFactory $timeFactory) {
49 49
 		$this->timeFactory = $timeFactory;
50 50
 		$this->retentionObligation = $config->getSystemValue('versions_retention_obligation', 'auto');
51 51
 
@@ -58,14 +58,14 @@  discard block
 block discarded – undo
58 58
 	 * Is versions expiration enabled
59 59
 	 * @return bool
60 60
 	 */
61
-	public function isEnabled(){
61
+	public function isEnabled() {
62 62
 		return $this->retentionObligation !== 'disabled';
63 63
 	}
64 64
 
65 65
 	/**
66 66
 	 * Is default expiration active
67 67
 	 */
68
-	public function shouldAutoExpire(){
68
+	public function shouldAutoExpire() {
69 69
 		return $this->minAge === self::NO_OBLIGATION
70 70
 				|| $this->maxAge === self::NO_OBLIGATION;
71 71
 	}
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 	 * @param bool $quotaExceeded
77 77
 	 * @return bool
78 78
 	 */
79
-	public function isExpired($timestamp, $quotaExceeded = false){
79
+	public function isExpired($timestamp, $quotaExceeded = false) {
80 80
 		// No expiration if disabled
81 81
 		if (!$this->isEnabled()) {
82 82
 			return false;
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 		$time = $this->timeFactory->getTime();
91 91
 		// Never expire dates in future e.g. misconfiguration or negative time
92 92
 		// adjustment
93
-		if ($time<$timestamp) {
93
+		if ($time < $timestamp) {
94 94
 			return false;
95 95
 		}
96 96
 
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 	 * Get maximal retention obligation as a timestamp
118 118
 	 * @return int
119 119
 	 */
120
-	public function getMaxAgeAsTimestamp(){
120
+	public function getMaxAgeAsTimestamp() {
121 121
 		$maxAge = false;
122 122
 		if ($this->isEnabled() && $this->maxAge !== self::NO_OBLIGATION) {
123 123
 			$time = $this->timeFactory->getTime();
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
 	* Read versions_retention_obligation, validate it 
131 131
 	* and set private members accordingly
132 132
 	*/
133
-	private function parseRetentionObligation(){
133
+	private function parseRetentionObligation() {
134 134
 		$splitValues = explode(',', $this->retentionObligation);
135 135
 		if (!isset($splitValues[0])) {
136 136
 			$minValue = 'auto';
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
 		if (!ctype_digit($minValue) && $minValue !== 'auto') {
150 150
 			$isValid = false;
151 151
 			\OC::$server->getLogger()->warning(
152
-					$minValue . ' is not a valid value for minimal versions retention obligation. Check versions_retention_obligation in your config.php. Falling back to auto.',
152
+					$minValue.' is not a valid value for minimal versions retention obligation. Check versions_retention_obligation in your config.php. Falling back to auto.',
153 153
 					['app'=>'files_versions']
154 154
 			);
155 155
 		}
@@ -157,12 +157,12 @@  discard block
 block discarded – undo
157 157
 		if (!ctype_digit($maxValue) && $maxValue !== 'auto') {
158 158
 			$isValid = false;
159 159
 			\OC::$server->getLogger()->warning(
160
-					$maxValue . ' is not a valid value for maximal versions retention obligation. Check versions_retention_obligation in your config.php. Falling back to auto.',
160
+					$maxValue.' is not a valid value for maximal versions retention obligation. Check versions_retention_obligation in your config.php. Falling back to auto.',
161 161
 					['app'=>'files_versions']
162 162
 			);
163 163
 		}
164 164
 
165
-		if (!$isValid){
165
+		if (!$isValid) {
166 166
 			$minValue = 'auto';
167 167
 			$maxValue = 'auto';
168 168
 		}
@@ -175,13 +175,13 @@  discard block
 block discarded – undo
175 175
 			$this->canPurgeToSaveSpace = true;
176 176
 		} elseif ($minValue !== 'auto' && $maxValue === 'auto') {
177 177
 			// Keep for X days but delete anytime if space needed
178
-			$this->minAge = (int)$minValue;
178
+			$this->minAge = (int) $minValue;
179 179
 			$this->maxAge = self::NO_OBLIGATION;
180 180
 			$this->canPurgeToSaveSpace = true;
181 181
 		} elseif ($minValue === 'auto' && $maxValue !== 'auto') {
182 182
 			// Delete anytime if space needed, Delete all older than max automatically
183 183
 			$this->minAge = self::NO_OBLIGATION;
184
-			$this->maxAge = (int)$maxValue;
184
+			$this->maxAge = (int) $maxValue;
185 185
 			$this->canPurgeToSaveSpace = true;
186 186
 		} elseif ($minValue !== 'auto' && $maxValue !== 'auto') {
187 187
 			// Delete all older than max OR older than min if space needed
@@ -191,8 +191,8 @@  discard block
 block discarded – undo
191 191
 				$maxValue = $minValue;
192 192
 			}
193 193
 
194
-			$this->minAge = (int)$minValue;
195
-			$this->maxAge = (int)$maxValue;
194
+			$this->minAge = (int) $minValue;
195
+			$this->maxAge = (int) $maxValue;
196 196
 			$this->canPurgeToSaveSpace = false;
197 197
 		}
198 198
 	}
Please login to merge, or discard this patch.
apps/user_ldap/lib/Jobs/CleanUp.php 1 patch
Spacing   +18 added lines, -19 removed lines patch added patch discarded remove patch
@@ -69,8 +69,8 @@  discard block
 block discarded – undo
69 69
 
70 70
 	public function __construct() {
71 71
 		$minutes = \OC::$server->getConfig()->getSystemValue(
72
-			'ldapUserCleanupInterval', (string)$this->defaultIntervalMin);
73
-		$this->setInterval((int)$minutes * 60);
72
+			'ldapUserCleanupInterval', (string) $this->defaultIntervalMin);
73
+		$this->setInterval((int) $minutes * 60);
74 74
 	}
75 75
 
76 76
 	/**
@@ -83,22 +83,22 @@  discard block
 block discarded – undo
83 83
 		//pass in app.php we do add here, except something else is passed e.g.
84 84
 		//in tests.
85 85
 
86
-		if(isset($arguments['helper'])) {
86
+		if (isset($arguments['helper'])) {
87 87
 			$this->ldapHelper = $arguments['helper'];
88 88
 		} else {
89 89
 			$this->ldapHelper = new Helper(\OC::$server->getConfig());
90 90
 		}
91 91
 
92
-		if(isset($arguments['ocConfig'])) {
92
+		if (isset($arguments['ocConfig'])) {
93 93
 			$this->ocConfig = $arguments['ocConfig'];
94 94
 		} else {
95 95
 			$this->ocConfig = \OC::$server->getConfig();
96 96
 		}
97 97
 
98
-		if(isset($arguments['userBackend'])) {
98
+		if (isset($arguments['userBackend'])) {
99 99
 			$this->userBackend = $arguments['userBackend'];
100 100
 		} else {
101
-			$this->userBackend =  new User_Proxy(
101
+			$this->userBackend = new User_Proxy(
102 102
 				$this->ldapHelper->getServerConfigurationPrefixes(true),
103 103
 				new LDAP(),
104 104
 				$this->ocConfig,
@@ -108,19 +108,19 @@  discard block
 block discarded – undo
108 108
 			);
109 109
 		}
110 110
 
111
-		if(isset($arguments['db'])) {
111
+		if (isset($arguments['db'])) {
112 112
 			$this->db = $arguments['db'];
113 113
 		} else {
114 114
 			$this->db = \OC::$server->getDatabaseConnection();
115 115
 		}
116 116
 
117
-		if(isset($arguments['mapping'])) {
117
+		if (isset($arguments['mapping'])) {
118 118
 			$this->mapping = $arguments['mapping'];
119 119
 		} else {
120 120
 			$this->mapping = new UserMapping($this->db);
121 121
 		}
122 122
 
123
-		if(isset($arguments['deletedUsersIndex'])) {
123
+		if (isset($arguments['deletedUsersIndex'])) {
124 124
 			$this->dui = $arguments['deletedUsersIndex'];
125 125
 		} else {
126 126
 			$this->dui = new DeletedUsersIndex(
@@ -135,11 +135,11 @@  discard block
 block discarded – undo
135 135
 	public function run($argument) {
136 136
 		$this->setArguments($argument);
137 137
 
138
-		if(!$this->isCleanUpAllowed()) {
138
+		if (!$this->isCleanUpAllowed()) {
139 139
 			return;
140 140
 		}
141 141
 		$users = $this->mapping->getList($this->getOffset(), $this->limit);
142
-		if(!is_array($users)) {
142
+		if (!is_array($users)) {
143 143
 			//something wrong? Let's start from the beginning next time and
144 144
 			//abort
145 145
 			$this->setOffset(true);
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
 	 */
166 166
 	public function isCleanUpAllowed() {
167 167
 		try {
168
-			if($this->ldapHelper->haveDisabledConfigurations()) {
168
+			if ($this->ldapHelper->haveDisabledConfigurations()) {
169 169
 				return false;
170 170
 			}
171 171
 		} catch (\Exception $e) {
@@ -182,8 +182,8 @@  discard block
 block discarded – undo
182 182
 	 * @return bool
183 183
 	 */
184 184
 	private function isCleanUpEnabled() {
185
-		return (bool)$this->ocConfig->getSystemValue(
186
-			'ldapUserCleanupInterval', (string)$this->defaultIntervalMin);
185
+		return (bool) $this->ocConfig->getSystemValue(
186
+			'ldapUserCleanupInterval', (string) $this->defaultIntervalMin);
187 187
 	}
188 188
 
189 189
 	/**
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
 	 * @param array $users result from getMappedUsers()
192 192
 	 */
193 193
 	private function checkUsers(array $users) {
194
-		foreach($users as $user) {
194
+		foreach ($users as $user) {
195 195
 			$this->checkUser($user);
196 196
 		}
197 197
 	}
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
 	 * @param string[] $user
202 202
 	 */
203 203
 	private function checkUser(array $user) {
204
-		if($this->userBackend->userExistsOnLDAP($user['name'])) {
204
+		if ($this->userBackend->userExistsOnLDAP($user['name'])) {
205 205
 			//still available, all good
206 206
 
207 207
 			return;
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
 	 * @return int
216 216
 	 */
217 217
 	private function getOffset() {
218
-		return (int)$this->ocConfig->getAppValue('user_ldap', 'cleanUpJobOffset', 0);
218
+		return (int) $this->ocConfig->getAppValue('user_ldap', 'cleanUpJobOffset', 0);
219 219
 	}
220 220
 
221 221
 	/**
@@ -223,8 +223,7 @@  discard block
 block discarded – undo
223 223
 	 * @param bool $reset whether the offset should be set to 0
224 224
 	 */
225 225
 	public function setOffset($reset = false) {
226
-		$newOffset = $reset ? 0 :
227
-			$this->getOffset() + $this->limit;
226
+		$newOffset = $reset ? 0 : $this->getOffset() + $this->limit;
228 227
 		$this->ocConfig->setAppValue('user_ldap', 'cleanUpJobOffset', $newOffset);
229 228
 	}
230 229
 
Please login to merge, or discard this patch.
apps/user_ldap/lib/Command/Search.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -90,16 +90,16 @@  discard block
 block discarded – undo
90 90
 	 * @throws \InvalidArgumentException
91 91
 	 */
92 92
 	protected function validateOffsetAndLimit($offset, $limit) {
93
-		if($limit < 0) {
93
+		if ($limit < 0) {
94 94
 			throw new \InvalidArgumentException('limit must be  0 or greater');
95 95
 		}
96
-		if($offset  < 0) {
96
+		if ($offset < 0) {
97 97
 			throw new \InvalidArgumentException('offset must be 0 or greater');
98 98
 		}
99
-		if($limit === 0 && $offset !== 0) {
99
+		if ($limit === 0 && $offset !== 0) {
100 100
 			throw new \InvalidArgumentException('offset must be 0 if limit is also set to 0');
101 101
 		}
102
-		if($offset > 0 && ($offset % $limit !== 0)) {
102
+		if ($offset > 0 && ($offset % $limit !== 0)) {
103 103
 			throw new \InvalidArgumentException('offset must be a multiple of limit');
104 104
 		}
105 105
 	}
@@ -109,11 +109,11 @@  discard block
 block discarded – undo
109 109
 		$configPrefixes = $helper->getServerConfigurationPrefixes(true);
110 110
 		$ldapWrapper = new LDAP();
111 111
 
112
-		$offset = (int)$input->getOption('offset');
113
-		$limit = (int)$input->getOption('limit');
112
+		$offset = (int) $input->getOption('offset');
113
+		$limit = (int) $input->getOption('limit');
114 114
 		$this->validateOffsetAndLimit($offset, $limit);
115 115
 
116
-		if($input->getOption('group')) {
116
+		if ($input->getOption('group')) {
117 117
 			$proxy = new Group_Proxy($configPrefixes, $ldapWrapper, \OC::$server->query('LDAPGroupPluginManager'));
118 118
 			$getMethod = 'getGroups';
119 119
 			$printID = false;
@@ -136,8 +136,8 @@  discard block
 block discarded – undo
136 136
 		}
137 137
 
138 138
 		$result = $proxy->$getMethod($input->getArgument('search'), $limit, $offset);
139
-		foreach($result as $id => $name) {
140
-			$line = $name . ($printID ? ' ('.$id.')' : '');
139
+		foreach ($result as $id => $name) {
140
+			$line = $name.($printID ? ' ('.$id.')' : '');
141 141
 			$output->writeln($line);
142 142
 		}
143 143
 	}
Please login to merge, or discard this patch.
apps/user_ldap/lib/Migration/UUIDFixInsert.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 	 */
72 72
 	public function run(IOutput $output) {
73 73
 		$installedVersion = $this->config->getAppValue('user_ldap', 'installed_version', '1.2.1');
74
-		if(version_compare($installedVersion, '1.2.1') !== -1) {
74
+		if (version_compare($installedVersion, '1.2.1') !== -1) {
75 75
 			return;
76 76
 		}
77 77
 
@@ -82,15 +82,15 @@  discard block
 block discarded – undo
82 82
 			do {
83 83
 				$retry = false;
84 84
 				$records = $mapper->getList($offset, $batchSize);
85
-				if(count($records) === 0){
85
+				if (count($records) === 0) {
86 86
 					continue;
87 87
 				}
88 88
 				try {
89 89
 					$this->jobList->add($jobClass, ['records' => $records]);
90 90
 					$offset += $batchSize;
91 91
 				} catch (\InvalidArgumentException $e) {
92
-					if(strpos($e->getMessage(), 'Background job arguments can\'t exceed 4000') !== false) {
93
-						$batchSize = (int)floor(count($records) * 0.8);
92
+					if (strpos($e->getMessage(), 'Background job arguments can\'t exceed 4000') !== false) {
93
+						$batchSize = (int) floor(count($records) * 0.8);
94 94
 						$retry = true;
95 95
 					}
96 96
 				}
Please login to merge, or discard this patch.
apps/user_ldap/ajax/getNewServerConfigPrefix.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,13 +32,13 @@
 block discarded – undo
32 32
 $serverConnections = $helper->getServerConfigurationPrefixes();
33 33
 sort($serverConnections);
34 34
 $lk = array_pop($serverConnections);
35
-$ln = (int)str_replace('s', '', $lk);
36
-$nk = 's'.str_pad($ln+1, 2, '0', STR_PAD_LEFT);
35
+$ln = (int) str_replace('s', '', $lk);
36
+$nk = 's'.str_pad($ln + 1, 2, '0', STR_PAD_LEFT);
37 37
 
38 38
 $resultData = array('configPrefix' => $nk);
39 39
 
40 40
 $newConfig = new \OCA\User_LDAP\Configuration($nk, false);
41
-if(isset($_POST['copyConfig'])) {
41
+if (isset($_POST['copyConfig'])) {
42 42
 	$originalConfig = new \OCA\User_LDAP\Configuration($_POST['copyConfig']);
43 43
 	$newConfig->setConfiguration($originalConfig->getConfiguration());
44 44
 } else {
Please login to merge, or discard this patch.