($value)
| 778 | } |
| 779 | |
| 780 | private static function sanitizeTagline($value): string |
| 781 | { |
| 782 | $text = trim((string)$value); |
| 783 | if ($text === '') { |
| 784 | return ''; |
| 785 | } |
| 786 | $text = preg_replace('/[\x00-\x1F\x7F]/', ' ', $text); |
| 787 | $text = preg_replace('/\s+/', ' ', (string)$text); |
| 788 | if (strlen($text) > 200) { |
| 789 | $text = substr($text, 0, 200); |
| 790 | } |
| 791 | return trim($text); |
| 792 | } |
| 793 | |
| 794 | private static function sanitizeFooterHtml($value): string |
| 795 | { |
no outgoing calls
no test coverage detected