Code Duplication    Length = 7-7 lines in 2 locations

includes/search/SearchMySQL.php 1 location

@@ 61-67 (lines=7) @@
58
				list( /* all */, $modifier, $term, $nonQuoted, $wildcard ) = $bits;
59
				MediaWiki\restoreWarnings();
60
61
				if ( $nonQuoted != '' ) {
62
					$term = $nonQuoted;
63
					$quote = '';
64
				} else {
65
					$term = str_replace( '"', '', $term );
66
					$quote = '"';
67
				}
68
69
				if ( $searchon !== '' ) {
70
					$searchon .= ' ';

includes/search/SearchSqlite.php 1 location

@@ 59-65 (lines=7) @@
56
				list( /* all */, $modifier, $term, $nonQuoted, $wildcard ) = $bits;
57
				MediaWiki\restoreWarnings();
58
59
				if ( $nonQuoted != '' ) {
60
					$term = $nonQuoted;
61
					$quote = '';
62
				} else {
63
					$term = str_replace( '"', '', $term );
64
					$quote = '"';
65
				}
66
67
				if ( $searchon !== '' ) {
68
					$searchon .= ' ';