Ran PHPCBF

phpcs-errors:253 phpunit-status:successful
This commit is contained in:
jrenslin authored and Stefan Rohde-Enslin committed 2019-11-12 21:25:52 +01:00
1 parent bf985ae192
commit d6470110e9
6 files changed
+2477 -2469

No files matched your search

+16 -4
View File
@@ -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('&quot;', '"', $transform);
$transform = str_replace('&', '&amp;', $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);