Completed
Push — 3.0.0 ( 5cf6f2...40ecb2 )
by Serhii
02:23
created
src/DetectorRule.php 1 patch
Spacing   +5 added lines, -5 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
             {
@@ -120,15 +120,15 @@  discard block
 block discarded – undo
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
                 }
Please login to merge, or discard this patch.