Passed
Branch main (857f8d)
by Rhyann
01:54
created
src/Xml.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,9 @@  discard block
 block discarded – undo
62 62
 
63 63
         while(($arquivo = $directory->read()) !== false)
64 64
          {
65
-            if (empty($arquivo) || $arquivo == '..' || $arquivo == '.') continue;
65
+            if (empty($arquivo) || $arquivo == '..' || $arquivo == '.') {
66
+                continue;
67
+            }
66 68
 
67 69
             $lexml   =  $this->path .'/'. $arquivo;
68 70
             $xml     =  simplexml_load_file($lexml);
@@ -75,9 +77,11 @@  discard block
 block discarded – undo
75 77
                  rename($lexml,"./{$this->pathError}/$arquivo");
76 78
                  continue;
77 79
              }
78
-             if ($environ != 1)  //se diferente de 1 ( 1 = Produção 2 = Homologação )
80
+             if ($environ != 1) {
81
+                 //se diferente de 1 ( 1 = Produção 2 = Homologação )
79 82
              {
80 83
                  echo "<h4>Documento emitido em ambiente de homologação!</h4>";
84
+             }
81 85
                  rename($lexml,"./{$this->pathError}/$arquivo");
82 86
                  continue;
83 87
              }
Please login to merge, or discard this patch.