Code Duplication    Length = 10-11 lines in 2 locations

lib/private/User/Manager.php 2 locations

@@ 403-412 (lines=10) @@
400
				$offset = 0;
401
				do {
402
					$users = $backend->getUsers($search, $limit, $offset);
403
					foreach ($users as $uid) {
404
						if (!$backend->userExists($uid)) {
405
							continue;
406
						}
407
						$user = $this->getUserObject($uid, $backend, false);
408
						$return = $callback($user);
409
						if ($return === false) {
410
							break;
411
						}
412
					}
413
					$offset += $limit;
414
				} while (count($users) >= $limit);
415
			}
@@ 473-483 (lines=11) @@
470
		do {
471
			$userIds = $this->getSeenUserIds($limit, $offset);
472
			$offset += $limit;
473
			foreach ($userIds as $userId) {
474
				foreach ($this->backends as $backend) {
475
					if ($backend->userExists($userId)) {
476
						$user = $this->getUserObject($userId, $backend, false);
477
						$return = $callback($user);
478
						if ($return === false) {
479
							return;
480
						}
481
					}
482
				}
483
			}
484
		} while (count($userIds) >= $limit);
485
	}
486