@@ -62,7 +62,9 @@ discard block |
||
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 |
||
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 | } |