@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | |
| 105 | 105 | public function __construct(\SimpleXMLElement $xmlData) |
| 106 | 106 | { |
| 107 | - if($xmlData !== null) |
|
| 107 | + if ($xmlData !== null) |
|
| 108 | 108 | { |
| 109 | 109 | foreach ($xmlData->children() as $child) |
| 110 | 110 | { |
@@ -120,15 +120,15 @@ discard block |
||
| 120 | 120 | */ |
| 121 | 121 | public static function loadRulesFromFile() |
| 122 | 122 | { |
| 123 | - $path = str_replace('src','data',__DIR__).'/rules/'; |
|
| 123 | + $path = str_replace('src', 'data', __DIR__).'/rules/'; |
|
| 124 | 124 | $files = scandir($path); |
| 125 | 125 | $rules = array(); |
| 126 | - foreach($files as $file) |
|
| 126 | + foreach ($files as $file) |
|
| 127 | 127 | { |
| 128 | - if($file != '.' && $file != '..') |
|
| 128 | + if ($file != '.' && $file != '..') |
|
| 129 | 129 | { |
| 130 | 130 | $xmlObj = simplexml_load_file($path.$file); |
| 131 | - foreach($xmlObj->children() as $rule) |
|
| 131 | + foreach ($xmlObj->children() as $rule) |
|
| 132 | 132 | { |
| 133 | 133 | $rules[] = new self($rule); |
| 134 | 134 | } |