Code Duplication    Length = 3-3 lines in 2 locations

apps/user_ldap/lib/Access.php 2 locations

@@ 1172-1174 (lines=3) @@
1169
		\OCP\Util::writeLog('user_ldap', 'Count filter:  '.print_r($filter, true), ILogger::DEBUG);
1170
1171
		$limitPerPage = (int)$this->connection->ldapPagingSize;
1172
		if(!is_null($limit) && $limit < $limitPerPage && $limit > 0) {
1173
			$limitPerPage = $limit;
1174
		}
1175
1176
		$counter = 0;
1177
		$count = null;
@@ 1235-1237 (lines=3) @@
1232
	 */
1233
	public function search($filter, $base, $attr = null, $limit = null, $offset = null, $skipHandling = false) {
1234
		$limitPerPage = (int)$this->connection->ldapPagingSize;
1235
		if(!is_null($limit) && $limit < $limitPerPage && $limit > 0) {
1236
			$limitPerPage = $limit;
1237
		}
1238
1239
		/* ++ Fixing RHDS searches with pages with zero results ++
1240
		 * As we can have pages with zero results and/or pages with less