Code Duplication    Length = 7-7 lines in 2 locations

includes/search/SearchPostgres.php 2 locations

@@ 40-46 (lines=7) @@
37
	 * @param string $term Raw search term
38
	 * @return SqlSearchResultSet
39
	 */
40
	function searchTitle( $term ) {
41
		$q = $this->searchQuery( $term, 'titlevector', 'page_title' );
42
		$olderror = error_reporting( E_ERROR );
43
		$resultSet = $this->db->query( $q, 'SearchPostgres', true );
44
		error_reporting( $olderror );
45
		return new SqlSearchResultSet( $resultSet, $this->searchTerms );
46
	}
47
48
	function searchText( $term ) {
49
		$q = $this->searchQuery( $term, 'textvector', 'old_text' );
@@ 48-54 (lines=7) @@
45
		return new SqlSearchResultSet( $resultSet, $this->searchTerms );
46
	}
47
48
	function searchText( $term ) {
49
		$q = $this->searchQuery( $term, 'textvector', 'old_text' );
50
		$olderror = error_reporting( E_ERROR );
51
		$resultSet = $this->db->query( $q, 'SearchPostgres', true );
52
		error_reporting( $olderror );
53
		return new SqlSearchResultSet( $resultSet, $this->searchTerms );
54
	}
55
56
	/**
57
	 * Transform the user's search string into a better form for tsearch2