equal
deleted
inserted
replaced
236 |
236 |
237 return false; |
237 return false; |
238 } |
238 } |
239 |
239 |
240 /** |
240 /** |
241 * Replace newlines, tabs, and multiple spaces with a single space |
241 * Replace newlines, tabs, and multiple spaces with a single space. |
242 * |
242 * |
243 * @param string $string |
243 * @param string $text |
244 * @return string |
244 * @return string |
245 */ |
245 */ |
246 public function min_whitespace( $string ) { |
246 public function min_whitespace( $text ) { |
247 return preg_replace( '|[\r\n\t ]+|', ' ', $string ); |
247 return preg_replace( '|[\r\n\t ]+|', ' ', $text ); |
248 } |
248 } |
249 |
249 |
250 /** |
250 /** |
251 * Resets global variables that grow out of control during imports. |
251 * Resets global variables that grow out of control during imports. |
252 * |
252 * |