Code Duplication    Length = 3-3 lines in 2 locations

apps/user_ldap/lib/Access.php 2 locations

@@ 1128-1130 (lines=3) @@
1125
		\OCP\Util::writeLog('user_ldap', 'Count filter:  '.print_r($filter, true), \OCP\Util::DEBUG);
1126
1127
		$limitPerPage = intval($this->connection->ldapPagingSize);
1128
		if(!is_null($limit) && $limit < $limitPerPage && $limit > 0) {
1129
			$limitPerPage = $limit;
1130
		}
1131
1132
		$counter = 0;
1133
		$count = null;
@@ 1191-1193 (lines=3) @@
1188
	 */
1189
	public function search($filter, $base, $attr = null, $limit = null, $offset = null, $skipHandling = false) {
1190
		$limitPerPage = intval($this->connection->ldapPagingSize);
1191
		if(!is_null($limit) && $limit < $limitPerPage && $limit > 0) {
1192
			$limitPerPage = $limit;
1193
		}
1194
1195
		/* ++ Fixing RHDS searches with pages with zero results ++
1196
		 * As we can have pages with zero results and/or pages with less