Commit 63a68494 authored by Daniel Siepmann's avatar Daniel Siepmann

TASK: Keep php 5.3 compatibility

parent f90a77bf
......@@ -77,7 +77,8 @@ class Standard implements StandardInterface
{
try {
$ruleSet = new \SimpleXMLElement(file_get_contents($ruleSetXmlPath));
$name = trim($ruleSet->attributes()['name']);
$attributes = $ruleSet->attributes();
$name = trim($attributes['name']);
if ($name !== '') {
return $name;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment