Ran PHPCBF
phpcs-errors:253 phpunit-status:successful
This commit is contained in:
@ -1,7 +1,13 @@
|
||||
<?PHP
|
||||
|
||||
function transform($transform)
|
||||
{
|
||||
/**
|
||||
* Function for sanitizing contents for prospective XML contents.
|
||||
*
|
||||
* @param string $transform Input string.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function transform(string $transform):string {
|
||||
$transform = str_replace(chr(14), "", $transform);
|
||||
$transform = str_replace('"', '"', $transform);
|
||||
$transform = str_replace('&', '&', $transform);
|
||||
@ -24,8 +30,14 @@ function transform($transform)
|
||||
|
||||
}
|
||||
|
||||
function tagify($tagify)
|
||||
{
|
||||
/**
|
||||
* Function for sanitizing contents for prospective XML contents.
|
||||
*
|
||||
* @param string $tagify Input string.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function tagify(string $tagify):string {
|
||||
$tagify = str_replace(' ', '_', $tagify);
|
||||
$tagify = str_replace('/', '_', $tagify);
|
||||
$tagify = str_replace(',', '_', $tagify);
|
||||
|
Reference in New Issue
Block a user