Code Duplication    Length = 10-11 lines in 2 locations

lib/private/User/Manager.php 2 locations

@@ 357-366 (lines=10) @@
354
				$offset = 0;
355
				do {
356
					$users = $backend->getUsers($search, $limit, $offset);
357
					foreach ($users as $uid) {
358
						if (!$backend->userExists($uid)) {
359
							continue;
360
						}
361
						$user = $this->getUserObject($uid, $backend, false);
362
						$return = $callback($user);
363
						if ($return === false) {
364
							break;
365
						}
366
					}
367
					$offset += $limit;
368
				} while (count($users) >= $limit);
369
			}
@@ 407-417 (lines=11) @@
404
		do {
405
			$userIds = $this->getSeenUserIds($limit, $offset);
406
			$offset += $limit;
407
			foreach ($userIds as $userId) {
408
				foreach ($this->backends as $backend) {
409
					if ($backend->userExists($userId)) {
410
						$user = $this->getUserObject($userId, $backend, false);
411
						$return = $callback($user);
412
						if ($return === false) {
413
							return;
414
						}
415
					}
416
				}
417
			}
418
		} while (count($userIds) >= $limit);
419
	}
420