Code Duplication    Length = 3-3 lines in 2 locations

includes/specials/pagers/ProtectedTitlesPager.php 1 location

@@ 76-78 (lines=3) @@
73
			$conds['pt_create_perm'] = $this->level;
74
		}
75
76
		if ( !is_null( $this->namespace ) ) {
77
			$conds[] = 'pt_namespace=' . $this->mDb->addQuotes( $this->namespace );
78
		}
79
80
		return [
81
			'tables' => 'protected_titles',

includes/specials/SpecialProtectedpages.php 1 location

@@ 537-539 (lines=3) @@
534
		if ( $this->level ) {
535
			$conds[] = 'pr_level=' . $this->mDb->addQuotes( $this->level );
536
		}
537
		if ( !is_null( $this->namespace ) ) {
538
			$conds[] = 'page_namespace=' . $this->mDb->addQuotes( $this->namespace );
539
		}
540
541
		return [
542
			'tables' => [ 'page', 'page_restrictions', 'log_search', 'logging' ],