Code Duplication    Length = 10-11 lines in 2 locations

lib/private/User/Manager.php 2 locations

@@ 395-404 (lines=10) @@
392
				$offset = 0;
393
				do {
394
					$users = $backend->getUsers($search, $limit, $offset);
395
					foreach ($users as $uid) {
396
						if (!$backend->userExists($uid)) {
397
							continue;
398
						}
399
						$user = $this->getUserObject($uid, $backend, false);
400
						$return = $callback($user);
401
						if ($return === false) {
402
							break;
403
						}
404
					}
405
					$offset += $limit;
406
				} while (count($users) >= $limit);
407
			}
@@ 443-453 (lines=11) @@
440
		do {
441
			$userIds = $this->getSeenUserIds($limit, $offset);
442
			$offset += $limit;
443
			foreach ($userIds as $userId) {
444
				foreach ($this->backends as $backend) {
445
					if ($backend->userExists($userId)) {
446
						$user = $this->getUserObject($userId, $backend, false);
447
						$return = $callback($user);
448
						if ($return === false) {
449
							return;
450
						}
451
					}
452
				}
453
			}
454
		} while (count($userIds) >= $limit);
455
	}
456