@@ 103-112 (lines=10) @@ | ||
100 | if ( count( $strippedVariants ) > 1 ) { |
|
101 | $searchon .= '('; |
|
102 | } |
|
103 | foreach ( $strippedVariants as $stripped ) { |
|
104 | $stripped = $this->normalizeText( $stripped ); |
|
105 | if ( $nonQuoted && strpos( $stripped, ' ' ) !== false ) { |
|
106 | // Hack for Chinese: we need to toss in quotes for |
|
107 | // multiple-character phrases since normalizeForSearch() |
|
108 | // added spaces between them to make word breaks. |
|
109 | $stripped = '"' . trim( $stripped ) . '"'; |
|
110 | } |
|
111 | $searchon .= "$quote$stripped$quote$wildcard "; |
|
112 | } |
|
113 | if ( count( $strippedVariants ) > 1 ) { |
|
114 | $searchon .= ')'; |
|
115 | } |
@@ 97-105 (lines=9) @@ | ||
94 | if ( count( $strippedVariants ) > 1 ) { |
|
95 | $searchon .= '('; |
|
96 | } |
|
97 | foreach ( $strippedVariants as $stripped ) { |
|
98 | if ( $nonQuoted && strpos( $stripped, ' ' ) !== false ) { |
|
99 | // Hack for Chinese: we need to toss in quotes for |
|
100 | // multiple-character phrases since normalizeForSearch() |
|
101 | // added spaces between them to make word breaks. |
|
102 | $stripped = '"' . trim( $stripped ) . '"'; |
|
103 | } |
|
104 | $searchon .= "$quote$stripped$quote$wildcard "; |
|
105 | } |
|
106 | if ( count( $strippedVariants ) > 1 ) { |
|
107 | $searchon .= ')'; |
|
108 | } |