Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
rabrowne85 authored and github-actions[bot] committed Sep 9, 2024
1 parent 3fe43a5 commit 6b2712f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 22 deletions.
4 changes: 2 additions & 2 deletions src/Exceptions/VatSenseApiError.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ final class VatSenseApiError extends Exception
{
public static function get(string $query, $error): self
{
return new static("{$error['title']}: The query `{$query}` failed with error details: `{$error['detail']}`.");
return new self("{$error['title']}: The query `{$query}` failed with error details: `{$error['detail']}`.");
}

public static function invalidConfig(string $string): self
{
return new static('Invalid configuration. The key `{string}` is required.');
return new self('Invalid configuration. The key `{string}` is required.');
}
}
2 changes: 1 addition & 1 deletion src/Exceptions/VatSenseException.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ final class VatSenseException extends Exception
{
public static function invalidConfig(string $string): self
{
return new static('Invalid configuration. The key `{string}` is required.');
return new self('Invalid configuration. The key `{string}` is required.');
}
}
19 changes: 0 additions & 19 deletions src/Vatsense.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
*/
class Vatsense
{
/**
* @var string
*/
protected string $baseUrl = 'https://api.vatsense.com/1.0/';

public function __construct()
Expand All @@ -26,8 +23,6 @@ public function __construct()
/**
* Function get.
*
* @param string $endpoint
* @param array $args
* @return array|mixed
*
* @throws VatSenseApiError
Expand Down Expand Up @@ -60,8 +55,6 @@ public function allRates(): mixed
/**
* Function filterRates.
*
* @param string|null $country_code
* @param string|null $ip_address
* @return array|mixed
*
* @throws VatSenseApiError
Expand All @@ -86,10 +79,6 @@ public function allRateTypes(): mixed
/**
* Function findRate.
*
* @param string|null $country_code
* @param string|null $ip_address
* @param bool|null $eu
* @param string|null $type
* @return array|mixed
*
* @throws VatSenseApiError
Expand All @@ -102,10 +91,6 @@ public function findRate(?string $country_code = null, ?string $ip_address = nul
/**
* Function quickRate.
*
* @param string|null $country_code
* @param string|null $ip_address
* @param bool|null $eu
* @param string|null $type
* @return array|mixed
*
* @throws VatSenseApiError
Expand All @@ -130,8 +115,6 @@ public function allCountries(): mixed
/**
* Function filterCountries.
*
* @param string|null $country_code
* @param string|null $ip_address
* @return array|mixed
*
* @throws VatSenseApiError
Expand All @@ -144,8 +127,6 @@ public function filterCountries(?string $country_code = null, ?string $ip_addres
/**
* Function validateVatNumber.
*
* @param string $vat_number
* @param string|null $requester
* @return array|mixed
*
* @throws VatSenseApiError
Expand Down

0 comments on commit 6b2712f

Please sign in to comment.