Code Duplication    Length = 10-11 lines in 2 locations

lib/private/User/Manager.php 2 locations

@@ 366-375 (lines=10) @@
363
				$offset = 0;
364
				do {
365
					$users = $backend->getUsers($search, $limit, $offset);
366
					foreach ($users as $uid) {
367
						if (!$backend->userExists($uid)) {
368
							continue;
369
						}
370
						$user = $this->getUserObject($uid, $backend, false);
371
						$return = $callback($user);
372
						if ($return === false) {
373
							break;
374
						}
375
					}
376
					$offset += $limit;
377
				} while (count($users) >= $limit);
378
			}
@@ 414-424 (lines=11) @@
411
		do {
412
			$userIds = $this->getSeenUserIds($limit, $offset);
413
			$offset += $limit;
414
			foreach ($userIds as $userId) {
415
				foreach ($this->backends as $backend) {
416
					if ($backend->userExists($userId)) {
417
						$user = $this->getUserObject($userId, $backend, false);
418
						$return = $callback($user);
419
						if ($return === false) {
420
							return;
421
						}
422
					}
423
				}
424
			}
425
		} while (count($userIds) >= $limit);
426
	}
427