|
@@ 695-697 (lines=3) @@
|
| 692 |
|
]); |
| 693 |
|
return $result; |
| 694 |
|
} catch (SoapFault $e) { |
| 695 |
|
if (isset($this->config) && $this->config->get('vat_calculator.forward_soap_faults')) { |
| 696 |
|
throw new VATCheckUnavailableException($e->getMessage(), $e->getCode(), $e->getPrevious()); |
| 697 |
|
} |
| 698 |
|
|
| 699 |
|
return false; |
| 700 |
|
} |
|
@@ 718-720 (lines=3) @@
|
| 715 |
|
try { |
| 716 |
|
$this->soapClient = new SoapClient(self::VAT_SERVICE_URL); |
| 717 |
|
} catch (SoapFault $e) { |
| 718 |
|
if (isset($this->config) && $this->config->get('vat_calculator.forward_soap_faults')) { |
| 719 |
|
throw new VATCheckUnavailableException($e->getMessage(), $e->getCode(), $e->getPrevious()); |
| 720 |
|
} |
| 721 |
|
|
| 722 |
|
$this->soapClient = false; |
| 723 |
|
} |