Skip to content
Snippets Groups Projects
Unverified Commit 63a68494 authored by Daniel Siepmann's avatar Daniel Siepmann
Browse files

TASK: Keep php 5.3 compatibility

parent f90a77bf
Branches
1 merge request!40Feature: Naming
......@@ -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;
}
......
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