Code Duplication    Length = 13-14 lines in 2 locations

includes/pager/IndexPager.php 1 location

@@ 533-545 (lines=13) @@
530
	 *
531
	 * @return array Associative array
532
	 */
533
	function getDefaultQuery() {
534
		if ( !isset( $this->mDefaultQuery ) ) {
535
			$this->mDefaultQuery = $this->getRequest()->getQueryValues();
536
			unset( $this->mDefaultQuery['title'] );
537
			unset( $this->mDefaultQuery['dir'] );
538
			unset( $this->mDefaultQuery['offset'] );
539
			unset( $this->mDefaultQuery['limit'] );
540
			unset( $this->mDefaultQuery['order'] );
541
			unset( $this->mDefaultQuery['month'] );
542
			unset( $this->mDefaultQuery['year'] );
543
		}
544
		return $this->mDefaultQuery;
545
	}
546
547
	/**
548
	 * Get the number of rows in the result set

includes/logging/LogEventsList.php 1 location

@@ 174-187 (lines=14) @@
171
		return '<small>' . $this->getLanguage()->pipeList( $links ) . '</small>' . $hiddens;
172
	}
173
174
	private function getDefaultQuery() {
175
		if ( !isset( $this->mDefaultQuery ) ) {
176
			$this->mDefaultQuery = $this->getRequest()->getQueryValues();
177
			unset( $this->mDefaultQuery['title'] );
178
			unset( $this->mDefaultQuery['dir'] );
179
			unset( $this->mDefaultQuery['offset'] );
180
			unset( $this->mDefaultQuery['limit'] );
181
			unset( $this->mDefaultQuery['order'] );
182
			unset( $this->mDefaultQuery['month'] );
183
			unset( $this->mDefaultQuery['year'] );
184
		}
185
186
		return $this->mDefaultQuery;
187
	}
188
189
	/**
190
	 * @param array $queryTypes