13 $styleAttributeValue = strtolower($styleAttributeValue);
14 foreach ($styleList as
$style) {
15 if ($styleAttributeValue == strtolower(
$style)) {
16 $styleAttributeValue =
$style;
26 protected static function getAttributes(?SimpleXMLElement $simple,
string $node): SimpleXMLElement
28 return ($simple ===
null)
29 ?
new SimpleXMLElement(
'<xml></xml>')
30 : ($simple->attributes($node) ??
new SimpleXMLElement(
'<xml></xml>'));
An exception for terminatinating execution or to throw for unit testing.
static getAttributes(?SimpleXMLElement $simple, string $node)
static identifyFixedStyleValue(array $styleList, string &$styleAttributeValue)