Skip to content

Commit 8896268

Browse files
committed
refactor: rimosso codice inutilizzato
1 parent bac1a52 commit 8896268

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

src/Validate.php

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -83,23 +83,6 @@ public static function isValidVatNumber($vat_number)
8383
return $result;
8484
}
8585

86-
/*
87-
// mpociot/vat-calculator
88-
use Mpociot\VatCalculator\Exceptions\VATCheckUnavailableException;
89-
use Mpociot\VatCalculator\VatCalculator;
90-
// Controllo con API europea ufficiale
91-
if (extension_loaded('soap')) {
92-
try {
93-
$validator = new VatCalculator();
94-
95-
if (!$validator->isValidVATNumber($vat_number)) {
96-
return false;
97-
}
98-
} catch (VATCheckUnavailableException $e) {
99-
}
100-
}
101-
*/
102-
10386
// Controllo attraverso apilayer
10487
$access_key = setting('apilayer API key for VAT number');
10588
if (!empty($access_key)) {

0 commit comments

Comments
 (0)