| @@ 600-603 (lines=4) @@ | ||
| 597 | } while (file_exists($file)); |
|
| 598 | if ($gzip) { |
|
| 599 | $dte = gzencode($dte); |
|
| 600 | if ($dte===false) { |
|
| 601 | \sasco\LibreDTE\Log::write(Estado::ENVIO_ERROR_GZIP, Estado::get(Estado::ENVIO_ERROR_GZIP)); |
|
| 602 | return false; |
|
| 603 | } |
|
| 604 | } |
|
| 605 | file_put_contents($file, $dte); |
|
| 606 | $data = [ |
|
| @@ 545-548 (lines=4) @@ | ||
| 542 | $body = null; |
|
| 543 | } |
|
| 544 | } |
|
| 545 | if ($body===null) { |
|
| 546 | \sasco\LibreDTE\Log::write(Estado::REQUEST_ERROR_BODY, Estado::get(Estado::REQUEST_ERROR_BODY, $wsdl, $retry)); |
|
| 547 | return false; |
|
| 548 | } |
|
| 549 | return new \SimpleXMLElement($body, LIBXML_COMPACT); |
|
| 550 | } |
|
| 551 | ||
| @@ 252-255 (lines=4) @@ | ||
| 249 | $body = null; |
|
| 250 | } |
|
| 251 | } |
|
| 252 | if ($body===null) { |
|
| 253 | \sasco\LibreDTE\Log::write(\sasco\LibreDTE\Estado::REQUEST_ERROR_BODY, \sasco\LibreDTE\Estado::get(\sasco\LibreDTE\Estado::REQUEST_ERROR_BODY, $wsdl, $retry)); |
|
| 254 | return false; |
|
| 255 | } |
|
| 256 | return $body; |
|
| 257 | } |
|
| 258 | ||