-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Be more explicit with constant name (suffix with _URL)
- Loading branch information
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?php | ||
/** | ||
* @author Pierre-Henry Soria <[email protected]> | ||
* @copyright (c) 2017-2022, Pierre-Henry Soria. All Rights Reserved. | ||
* @author Pierre-Henry Soria <[email protected]> | ||
* @copyright (c) 2017-2024, Pierre-Henry Soria. All Rights Reserved. | ||
* @license GNU General Public License; <https://www.gnu.org/licenses/gpl-3.0.en.html> | ||
*/ | ||
|
||
|
@@ -16,7 +16,7 @@ | |
|
||
class Europa implements Providable | ||
{ | ||
public const EU_VAT_API = 'https://ec.europa.eu'; | ||
public const EU_VAT_API_URL = 'https://ec.europa.eu'; | ||
public const EU_VAT_WSDL_ENDPOINT = '/taxation_customs/vies/checkVatService.wsdl'; | ||
|
||
private const IMPOSSIBLE_CONNECT_API_MESSAGE = 'Impossible to connect to the Europa SOAP: %s'; | ||
|
@@ -45,7 +45,7 @@ public function __construct() | |
|
||
public function getApiUrl(): string | ||
{ | ||
return static::EU_VAT_API . static::EU_VAT_WSDL_ENDPOINT; | ||
return static::EU_VAT_API_URL . static::EU_VAT_WSDL_ENDPOINT; | ||
} | ||
|
||
/** | ||
|