| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 15 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 45 | 57 | public static function richTextToPlainText(string $string): string |
|
| 46 | { |
||
| 47 | 57 | return trim(self::noUnbreakableSpaces(html_entity_decode(strip_tags(preg_replace( |
|
| 48 | 57 | [ |
|
| 49 | 57 | '~<br\s*/?>~i', |
|
| 50 | 57 | '~<p\s*>~i', |
|
| 51 | 57 | '~</p\s*>~i', |
|
| 52 | 57 | '~\n{2,}~i', |
|
| 53 | 57 | ], |
|
| 54 | 57 | [ |
|
| 55 | 57 | "\n", |
|
| 56 | 57 | "\n\n", |
|
| 57 | 57 | "\n\n", |
|
| 58 | 57 | "\n\n", |
|
| 59 | 57 | ], |
|
| 60 | 57 | $string |
|
| 61 | 57 | ))))); |
|
| 64 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.