@@ -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 | switch ($child->getName()) |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | break; |
124 | 124 | case 'targetProperty': |
125 | 125 | $boolVal = $child->__toString(); |
126 | - if($boolVal == 'true') |
|
126 | + if ($boolVal == 'true') |
|
127 | 127 | { |
128 | 128 | $this->TargetValue = true; |
129 | 129 | } |
@@ -142,15 +142,15 @@ discard block |
||
142 | 142 | */ |
143 | 143 | public static function loadRulesFromFile() |
144 | 144 | { |
145 | - $path = str_replace('src','data',__DIR__).'/rules/'; |
|
145 | + $path = str_replace('src', 'data', __DIR__).'/rules/'; |
|
146 | 146 | $files = scandir($path); |
147 | 147 | $rules = array(); |
148 | - foreach($files as $file) |
|
148 | + foreach ($files as $file) |
|
149 | 149 | { |
150 | - if($file != '.' && $file != '..') |
|
150 | + if ($file != '.' && $file != '..') |
|
151 | 151 | { |
152 | 152 | $xmlObj = simplexml_load_file($path.$file); |
153 | - foreach($xmlObj->children() as $rule) |
|
153 | + foreach ($xmlObj->children() as $rule) |
|
154 | 154 | { |
155 | 155 | $rules[] = new self($rule); |
156 | 156 | } |
@@ -126,8 +126,7 @@ |
||
126 | 126 | if($boolVal == 'true') |
127 | 127 | { |
128 | 128 | $this->TargetValue = true; |
129 | - } |
|
130 | - else |
|
129 | + } else |
|
131 | 130 | { |
132 | 131 | $this->TargetValue = false; |
133 | 132 | } |