Completed
Pull Request — master (#63)
by
unknown
01:49
created
lib/Sii/ConsumoFolio.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
     {
127 127
         $fecha = '9999-12-31';
128 128
         foreach ($this->detalles as &$d) {
129
-            if ($d['FchDoc'] < $fecha) {
129
+            if ($d['FchDoc']<$fecha) {
130 130
                 $fecha = $d['FchDoc'];
131 131
             }
132 132
         }
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
     {
144 144
         $fecha = '0000-01-01';
145 145
         foreach ($this->detalles as &$d) {
146
-            if ($d['FchDoc'] > $fecha) {
146
+            if ($d['FchDoc']>$fecha) {
147 147
                 $fecha = $d['FchDoc'];
148 148
             }
149 149
         }
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
         // ajustes post agregar detalles
203 203
         foreach ($Resumen as &$r) {
204 204
             // obtener folios utilizados = emitidos + anulados
205
-            $r['FoliosUtilizados'] = $r['FoliosEmitidos'] + $r['FoliosAnulados'];
205
+            $r['FoliosUtilizados'] = $r['FoliosEmitidos']+$r['FoliosAnulados'];
206 206
             $r['RangoUtilizados'] = $this->getRangos($RangoUtilizados[$r['TipoDocumento']]);
207 207
         }
208 208
         // completar con los resumenes que no se colocaron
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
         $aux = [];
235 235
         $inicial = $folios[0];
236 236
         $i = $inicial;
237
-        foreach($folios as $f) {
237
+        foreach ($folios as $f) {
238 238
             if ($i!=$f) {
239 239
                 $inicial = $f;
240 240
                 $i = $inicial;
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
      */
261 261
     public function getSecuencia()
262 262
     {
263
-        if(isset($this->caratula['SecEnvio']))
263
+        if (isset($this->caratula['SecEnvio']))
264 264
             return trim($this->caratula['SecEnvio']);
265 265
         else
266 266
             return 1;
Please login to merge, or discard this patch.
Braces   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -260,10 +260,11 @@
 block discarded – undo
260 260
      */
261 261
     public function getSecuencia()
262 262
     {
263
-        if(isset($this->caratula['SecEnvio']))
264
-            return trim($this->caratula['SecEnvio']);
265
-        else
266
-            return 1;
263
+        if(isset($this->caratula['SecEnvio'])) {
264
+                    return trim($this->caratula['SecEnvio']);
265
+        } else {
266
+                    return 1;
267
+        }
267 268
     }
268 269
 
269 270
 }
Please login to merge, or discard this patch.