Completed
Branch 3.0.0 (3f0ab7)
by Serhii
03:15
created
src/DetectorRule.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
                 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -126,8 +126,7 @@
 block discarded – undo
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
                         }
Please login to merge, or discard this patch.