@@ -56,28 +56,28 @@ discard block |
||
56 | 56 | 'folio', |
57 | 57 | 'fecha', |
58 | 58 | 'subTotal', |
59 | - 'subtotal', // Alias of subTotal |
|
59 | + 'subtotal', // Alias of subTotal |
|
60 | 60 | 'total', |
61 | - 'certificado' , |
|
61 | + 'certificado', |
|
62 | 62 | 'noCertificado', |
63 | 63 | 'condicionesDePago', |
64 | 64 | 'descuento', |
65 | 65 | 'motivoDescuento', |
66 | 66 | 'TipoCambio', |
67 | - 'tipoCambio', // Alias of TipoCambio |
|
67 | + 'tipoCambio', // Alias of TipoCambio |
|
68 | 68 | 'Moneda', |
69 | - 'moneda', // Alias of Moneda |
|
69 | + 'moneda', // Alias of Moneda |
|
70 | 70 | 'metodoDePago', |
71 | - 'sello' , |
|
71 | + 'sello', |
|
72 | 72 | 'tipoDeComprobante', |
73 | 73 | 'formaDePago', |
74 | 74 | 'LugarExpedicion', |
75 | - 'lugarExpedicion', // Alias of LugarExpedcion |
|
75 | + 'lugarExpedicion', // Alias of LugarExpedcion |
|
76 | 76 | 'NumCtaPago', |
77 | - 'numCtaPago', // Alias of numCtaPago |
|
78 | - 'cadenaOriginal', // Dinamically generated |
|
79 | - 'leyenda', // Dinamically generated |
|
80 | - 'iva', // Dinamically generated |
|
77 | + 'numCtaPago', // Alias of numCtaPago |
|
78 | + 'cadenaOriginal', // Dinamically generated |
|
79 | + 'leyenda', // Dinamically generated |
|
80 | + 'iva', // Dinamically generated |
|
81 | 81 | ]; |
82 | 82 | |
83 | 83 | /** |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | public function toFile($filepath, $overwrite = false) |
156 | 156 | { |
157 | 157 | if (file_exists($filepath) and !$overwrite) { |
158 | - throw new \RuntimeException($filepath . ' already exists.'); |
|
158 | + throw new \RuntimeException($filepath.' already exists.'); |
|
159 | 159 | } |
160 | 160 | |
161 | 161 | return file_put_contents($filepath, $this->xmlContent); |
@@ -317,7 +317,7 @@ discard block |
||
317 | 317 | $data = preg_replace('~\s*(<([^>]*)>[^<]*</\2>|<[^>]*>)\s*~', '$1', $data); |
318 | 318 | $data = preg_replace('/\r\n/', "\n", $data); |
319 | 319 | |
320 | - return $xmlHeader . PHP_EOL . $data; |
|
320 | + return $xmlHeader.PHP_EOL.$data; |
|
321 | 321 | } |
322 | 322 | |
323 | 323 | /** |
@@ -635,10 +635,10 @@ discard block |
||
635 | 635 | */ |
636 | 636 | public function getQrString() |
637 | 637 | { |
638 | - return '?re=' . $this->emisor->rfc |
|
639 | - . '&rr=' . $this->receptor->rfc |
|
640 | - . '&tt=' . $this->total |
|
641 | - . '&id=' . $this->timbre->uuid; |
|
638 | + return '?re='.$this->emisor->rfc |
|
639 | + . '&rr='.$this->receptor->rfc |
|
640 | + . '&tt='.$this->total |
|
641 | + . '&id='.$this->timbre->uuid; |
|
642 | 642 | } |
643 | 643 | |
644 | 644 | /** |