Skip to content

Commit

Permalink
Be more explicit with constant name (suffix with _URL)
Browse files Browse the repository at this point in the history
  • Loading branch information
pH-7 committed Mar 3, 2024
1 parent dba3156 commit 9a421cb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Vat/Provider/Europa.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* @author Pierre-Henry Soria <pierrehenrysoria@gmail.com>
* @copyright (c) 2017-2022, Pierre-Henry Soria. All Rights Reserved.
* @author Pierre-Henry Soria <hi@ph7.me>
* @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>
*/

Expand All @@ -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';
Expand Down Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit 9a421cb

Please sign in to comment.