Code Duplication    Length = 3-3 lines in 2 locations

apps/user_ldap/lib/Access.php 2 locations

@@ 1120-1122 (lines=3) @@
1117
		\OCP\Util::writeLog('user_ldap', 'Count filter:  '.print_r($filter, true), \OCP\Util::DEBUG);
1118
1119
		$limitPerPage = intval($this->connection->ldapPagingSize);
1120
		if(!is_null($limit) && $limit < $limitPerPage && $limit > 0) {
1121
			$limitPerPage = $limit;
1122
		}
1123
1124
		$counter = 0;
1125
		$count = null;
@@ 1182-1184 (lines=3) @@
1179
	 */
1180
	public function search($filter, $base, $attr = null, $limit = null, $offset = null, $skipHandling = false) {
1181
		$limitPerPage = intval($this->connection->ldapPagingSize);
1182
		if(!is_null($limit) && $limit < $limitPerPage && $limit > 0) {
1183
			$limitPerPage = $limit;
1184
		}
1185
1186
		/* ++ Fixing RHDS searches with pages with zero results ++
1187
		 * As we can have pages with zero results and/or pages with less