Code Duplication    Length = 10-11 lines in 2 locations

lib/private/User/Manager.php 2 locations

@@ 379-388 (lines=10) @@
376
				$offset = 0;
377
				do {
378
					$users = $backend->getUsers($search, $limit, $offset);
379
					foreach ($users as $uid) {
380
						if (!$backend->userExists($uid)) {
381
							continue;
382
						}
383
						$user = $this->getUserObject($uid, $backend, false);
384
						$return = $callback($user);
385
						if ($return === false) {
386
							break;
387
						}
388
					}
389
					$offset += $limit;
390
				} while (count($users) >= $limit);
391
			}
@@ 427-437 (lines=11) @@
424
		do {
425
			$userIds = $this->getSeenUserIds($limit, $offset);
426
			$offset += $limit;
427
			foreach ($userIds as $userId) {
428
				foreach ($this->backends as $backend) {
429
					if ($backend->userExists($userId)) {
430
						$user = $this->getUserObject($userId, $backend, false);
431
						$return = $callback($user);
432
						if ($return === false) {
433
							return;
434
						}
435
					}
436
				}
437
			}
438
		} while (count($userIds) >= $limit);
439
	}
440