Code Duplication    Length = 10-10 lines in 2 locations

includes/specials/SpecialWatchlist.php 1 location

@@ 299-308 (lines=10) @@
296
		);
297
	}
298
299
	protected function runMainQueryHook( &$tables, &$fields, &$conds, &$query_options,
300
		&$join_conds, $opts
301
	) {
302
		return parent::runMainQueryHook( $tables, $fields, $conds, $query_options, $join_conds, $opts )
303
			&& Hooks::run(
304
				'SpecialWatchlistQuery',
305
				[ &$conds, &$tables, &$join_conds, &$fields, $opts ],
306
				'1.23'
307
			);
308
	}
309
310
	/**
311
	 * Return a IDatabase object for reading

includes/specials/SpecialRecentchanges.php 1 location

@@ 275-284 (lines=10) @@
272
		return $rows;
273
	}
274
275
	protected function runMainQueryHook( &$tables, &$fields, &$conds,
276
		&$query_options, &$join_conds, $opts
277
	) {
278
		return parent::runMainQueryHook( $tables, $fields, $conds, $query_options, $join_conds, $opts )
279
			&& Hooks::run(
280
				'SpecialRecentChangesQuery',
281
				[ &$conds, &$tables, &$join_conds, $opts, &$query_options, &$fields ],
282
				'1.23'
283
			);
284
	}
285
286
	protected function getDB() {
287
		return wfGetDB( DB_REPLICA, 'recentchanges' );