Code Duplication    Length = 4-4 lines in 2 locations

lib/Sii.php 1 location

@@ 204-207 (lines=4) @@
201
                $body = null;
202
            }
203
        }
204
        if ($body===null) {
205
            \sasco\LibreDTE\Log::write(Estado::REQUEST_ERROR_BODY, Estado::get(Estado::REQUEST_ERROR_BODY, $wsdl, $retry));
206
            return false;
207
        }
208
        return new \SimpleXMLElement($body, LIBXML_COMPACT);
209
    }
210

lib/Sii/RegistroCompraVenta.php 1 location

@@ 236-239 (lines=4) @@
233
                $body = null;
234
            }
235
        }
236
        if ($body===null) {
237
            \sasco\LibreDTE\Log::write(\sasco\LibreDTE\Estado::REQUEST_ERROR_BODY, \sasco\LibreDTE\Estado::get(\sasco\LibreDTE\Estado::REQUEST_ERROR_BODY, $wsdl, $retry));
238
            return false;
239
        }
240
        return $body;
241
    }
242