Code Duplication    Length = 3-3 lines in 2 locations

lib/Sii.php 2 locations

@@ 180-182 (lines=3) @@
177
            $soap = new \SoapClient(self::wsdl($wsdl), $options);
178
        } catch (\Exception $e) {
179
            $msg = $e->getMessage();
180
            if (isset($e->getTrace()[0]['args'][1]) and is_string($e->getTrace()[0]['args'][1])) {
181
                $msg .= ': '.$e->getTrace()[0]['args'][1];
182
            }
183
            \sasco\LibreDTE\Log::write(Estado::REQUEST_ERROR_SOAP, Estado::get(Estado::REQUEST_ERROR_SOAP, $msg));
184
            return false;
185
        }
@@ 196-198 (lines=3) @@
193
                break;
194
            } catch (\Exception $e) {
195
                $msg = $e->getMessage();
196
                if (isset($e->getTrace()[0]['args'][1]) and is_string($e->getTrace()[0]['args'][1])) {
197
                    $msg .= ': '.$e->getTrace()[0]['args'][1];
198
                }
199
                \sasco\LibreDTE\Log::write(Estado::REQUEST_ERROR_SOAP, Estado::get(Estado::REQUEST_ERROR_SOAP, $msg));
200
                $body = null;
201
            }