Code Duplication    Length = 8-8 lines in 2 locations

includes/specials/SpecialRecentchanges.php 1 location

@@ 102-109 (lines=8) @@
99
	 *
100
	 * @return array Map of filter URL param names to properties (msg/default)
101
	 */
102
	protected function getCustomFilters() {
103
		if ( $this->customFilters === null ) {
104
			$this->customFilters = parent::getCustomFilters();
105
			Hooks::run( 'SpecialRecentChangesFilters', [ $this, &$this->customFilters ], '1.23' );
106
		}
107
108
		return $this->customFilters;
109
	}
110
111
	/**
112
	 * Process $par and put options found in $opts. Used when including the page.

includes/specials/SpecialWatchlist.php 1 location

@@ 137-144 (lines=8) @@
134
	 *
135
	 * @return array Map of filter URL param names to properties (msg/default)
136
	 */
137
	protected function getCustomFilters() {
138
		if ( $this->customFilters === null ) {
139
			$this->customFilters = parent::getCustomFilters();
140
			Hooks::run( 'SpecialWatchlistFilters', [ $this, &$this->customFilters ], '1.23' );
141
		}
142
143
		return $this->customFilters;
144
	}
145
146
	/**
147
	 * Fetch values for a FormOptions object from the WebRequest associated with this instance.