Passed
Push — master ( ae54ae...41fe4d )
by Blizzz
17:31 queued 11s
created
apps/user_ldap/lib/Jobs/CleanUp.php 1 patch
Spacing   +7 added lines, -8 removed lines patch added patch discarded remove patch
@@ -69,8 +69,8 @@  discard block
 block discarded – undo
69 69
 
70 70
 	public function __construct(User_Proxy $userBackend, DeletedUsersIndex $dui) {
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
 		$this->userBackend = $userBackend;
75 75
 		$this->dui = $dui;
76 76
 	}
@@ -170,8 +170,8 @@  discard block
 block discarded – undo
170 170
 	 * @return bool
171 171
 	 */
172 172
 	private function isCleanUpEnabled() {
173
-		return (bool)$this->ocConfig->getSystemValue(
174
-			'ldapUserCleanupInterval', (string)$this->defaultIntervalMin);
173
+		return (bool) $this->ocConfig->getSystemValue(
174
+			'ldapUserCleanupInterval', (string) $this->defaultIntervalMin);
175 175
 	}
176 176
 
177 177
 	/**
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
 	 * @return int
204 204
 	 */
205 205
 	private function getOffset() {
206
-		return (int)$this->ocConfig->getAppValue('user_ldap', 'cleanUpJobOffset', 0);
206
+		return (int) $this->ocConfig->getAppValue('user_ldap', 'cleanUpJobOffset', 0);
207 207
 	}
208 208
 
209 209
 	/**
@@ -211,8 +211,7 @@  discard block
 block discarded – undo
211 211
 	 * @param bool $reset whether the offset should be set to 0
212 212
 	 */
213 213
 	public function setOffset($reset = false) {
214
-		$newOffset = $reset ? 0 :
215
-			$this->getOffset() + $this->getChunkSize();
214
+		$newOffset = $reset ? 0 : $this->getOffset() + $this->getChunkSize();
216 215
 		$this->ocConfig->setAppValue('user_ldap', 'cleanUpJobOffset', $newOffset);
217 216
 	}
218 217
 
@@ -222,7 +221,7 @@  discard block
 block discarded – undo
222 221
 	 */
223 222
 	public function getChunkSize() {
224 223
 		if ($this->limit === null) {
225
-			$this->limit = (int)$this->ocConfig->getAppValue('user_ldap', 'cleanUpJobChunkSize', 50);
224
+			$this->limit = (int) $this->ocConfig->getAppValue('user_ldap', 'cleanUpJobChunkSize', 50);
226 225
 		}
227 226
 		return $this->limit;
228 227
 	}
Please login to merge, or discard this patch.
apps/user_ldap/lib/User/OfflineUser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
 		if (!isset($this->lastLogin)) {
193 193
 			$this->fetchDetails();
194 194
 		}
195
-		return (int)$this->lastLogin;
195
+		return (int) $this->lastLogin;
196 196
 	}
197 197
 
198 198
 	/**
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
 		if (!isset($this->foundDeleted)) {
204 204
 			$this->fetchDetails();
205 205
 		}
206
-		return (int)$this->foundDeleted;
206
+		return (int) $this->foundDeleted;
207 207
 	}
208 208
 
209 209
 	/**
Please login to merge, or discard this patch.