Code Duplication    Length = 3-3 lines in 2 locations

lib/Sii.php 2 locations

@@ 522-524 (lines=3) @@
519
            $soap = new \SoapClient(self::wsdl($wsdl), $options);
520
        } catch (\Exception $e) {
521
            $msg = $e->getMessage();
522
            if (isset($e->getTrace()[0]['args'][1]) and is_string($e->getTrace()[0]['args'][1])) {
523
                $msg .= ': '.$e->getTrace()[0]['args'][1];
524
            }
525
            \sasco\LibreDTE\Log::write(Estado::REQUEST_ERROR_SOAP, Estado::get(Estado::REQUEST_ERROR_SOAP, $msg));
526
            return false;
527
        }
@@ 538-540 (lines=3) @@
535
                break;
536
            } catch (\Exception $e) {
537
                $msg = $e->getMessage();
538
                if (isset($e->getTrace()[0]['args'][1]) and is_string($e->getTrace()[0]['args'][1])) {
539
                    $msg .= ': '.$e->getTrace()[0]['args'][1];
540
                }
541
                \sasco\LibreDTE\Log::write(Estado::REQUEST_ERROR_SOAP, Estado::get(Estado::REQUEST_ERROR_SOAP, $msg));
542
                $body = null;
543
            }