Code Duplication    Length = 4-4 lines in 2 locations

lib/Sii.php 1 location

@@ 216-219 (lines=4) @@
213
                $body = null;
214
            }
215
        }
216
        if ($body===null) {
217
            \sasco\LibreDTE\Log::write(Estado::REQUEST_ERROR_BODY, Estado::get(Estado::REQUEST_ERROR_BODY, $wsdl, $retry));
218
            return false;
219
        }
220
        return new \SimpleXMLElement($body, LIBXML_COMPACT);
221
    }
222

lib/Sii/RegistroCompraVenta.php 1 location

@@ 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