mirror of
https://github.com/standardebooks/web.git
synced 2025-07-16 03:16:36 -04:00
Update PropertiesBase to new patterns and improve static analysis checks
This commit is contained in:
parent
5f0b57f7e9
commit
6c8414f844
33 changed files with 335 additions and 148 deletions
|
@ -33,10 +33,10 @@ class Formatter{
|
|||
}
|
||||
|
||||
public static function ToPlainText(?string $text): string{
|
||||
return htmlspecialchars(trim($text), ENT_QUOTES, 'utf-8');
|
||||
return htmlspecialchars(trim($text ?? ''), ENT_QUOTES, 'utf-8');
|
||||
}
|
||||
|
||||
public static function ToPlainXmlText(?string $text): string{
|
||||
return htmlspecialchars(trim($text), ENT_QUOTES|ENT_XML1, 'utf-8');
|
||||
return htmlspecialchars(trim($text ?? ''), ENT_QUOTES|ENT_XML1, 'utf-8');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue