2
0
forked from Wavyzz/dolibarr

Fix phpcs

This commit is contained in:
Laurent Destailleur
2019-04-02 20:02:43 +02:00
parent 42fda54edf
commit bb9cd05ea8
2 changed files with 10 additions and 8 deletions

View File

@@ -2438,20 +2438,22 @@ function randomColor($min = 0, $max = 255)
return randomColorPart($min, $max) . randomColorPart($min, $max) . randomColorPart($min, $max);
}
/**
* Encode string for xml usage
*
* @param string $string String to encode
* @return string String encoded
*/
if (! function_exists('dolEscapeXML'))
{
/**
* Encode string for xml usage
*
* @param string $string String to encode
* @return string String encoded
*/
function dolEscapeXML($string)
{
return strtr($string, array('\''=>'&apos;','"'=>'&quot;','&'=>'&amp;','<'=>'&lt;','>'=>'&gt;'));
}
}
/**
* Return automatic or manual in current language
*