| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 15 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 45 | 56 | public static function richTextToPlainText(string $string): string |
|
| 46 | { |
||
| 47 | 56 | return trim(self::noUnbreakableSpaces(html_entity_decode(strip_tags(preg_replace( |
|
| 48 | 56 | [ |
|
| 49 | 56 | '~<br\s*/?>~i', |
|
| 50 | 56 | '~<p\s*>~i', |
|
| 51 | 56 | '~</p\s*>~i', |
|
| 52 | 56 | '~\n{2,}~i', |
|
| 53 | 56 | ], |
|
| 54 | 56 | [ |
|
| 55 | 56 | "\n", |
|
| 56 | 56 | "\n\n", |
|
| 57 | 56 | "\n\n", |
|
| 58 | 56 | "\n\n", |
|
| 59 | 56 | ], |
|
| 60 | 56 | $string |
|
| 61 | 56 | ))))); |
|
| 64 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths