Code Duplication    Length = 3-3 lines in 2 locations

lib/Sii.php 2 locations

@@ 193-195 (lines=3) @@
190
            $soap = new \SoapClient(self::wsdl($wsdl), $options);
191
        } catch (\Exception $e) {
192
            $msg = $e->getMessage();
193
            if (isset($e->getTrace()[0]['args'][1]) and is_string($e->getTrace()[0]['args'][1])) {
194
                $msg .= ': '.$e->getTrace()[0]['args'][1];
195
            }
196
            \sasco\LibreDTE\Log::write(Estado::REQUEST_ERROR_SOAP, Estado::get(Estado::REQUEST_ERROR_SOAP, $msg));
197
            return false;
198
        }
@@ 209-211 (lines=3) @@
206
                break;
207
            } catch (\Exception $e) {
208
                $msg = $e->getMessage();
209
                if (isset($e->getTrace()[0]['args'][1]) and is_string($e->getTrace()[0]['args'][1])) {
210
                    $msg .= ': '.$e->getTrace()[0]['args'][1];
211
                }
212
                \sasco\LibreDTE\Log::write(Estado::REQUEST_ERROR_SOAP, Estado::get(Estado::REQUEST_ERROR_SOAP, $msg));
213
                $body = null;
214
            }