| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | public function process($string) |
||
| 20 | { |
||
| 21 | $quoteSymbolSanitized = h($this->_sOptions->get('quote_symbol')); |
||
| 22 | $string = preg_replace( |
||
| 23 | // Begin of the text or a new line in the text, maybe one space afterwards |
||
| 24 | '/(^|\n\r\s?)' . |
||
| 25 | $quoteSymbolSanitized . |
||
| 26 | '\s(.*)(?!\<br)/m', |
||
| 27 | "\\1<span class=\"richtext-citation\">" . $quoteSymbolSanitized . " \\2</span>", |
||
| 28 | $string |
||
| 29 | ); |
||
| 30 | |||
| 31 | return $string; |
||
| 32 | } |
||
| 34 |