Skip to content

Commit

Permalink
Fix for case sensitive filesystems (#26)
Browse files Browse the repository at this point in the history
Co-authored-by: Josh Marshall <[email protected]>
  • Loading branch information
joshbmarshall and joshbmarshall authored Feb 3, 2021
1 parent 1a07b21 commit a81e65b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions lib/Model/CreateChargeRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public function listInvalidProperties()
if ($this->container['currency'] === null) {
$invalid_properties[] = "'currency' can't be null";
}
$allowed_values = currencyUtil::isValidCurrency($this->container['currency']);
$allowed_values = CurrencyUtil::isValidCurrency($this->container['currency']);
if (!$allowed_values['valid']) {
$invalid_properties[] = $allowed_values['message'];
}
Expand All @@ -167,7 +167,7 @@ public function valid()
if ($this->container['currency'] === null) {
return false;
}
$allowed_values = currencyUtil::isValidCurrency($this->container['currency']);
$allowed_values = CurrencyUtil::isValidCurrency($this->container['currency']);
if (!$allowed_values['valid']) {
return false;
}
Expand Down Expand Up @@ -254,7 +254,7 @@ public function getCurrency()
*/
public function setCurrency($currency)
{
$allowed_values = currencyUtil::isValidCurrency($currency);
$allowed_values = CurrencyUtil::isValidCurrency($currency);
if (!$allowed_values['valid']) {
throw new \InvalidArgumentException($allowed_values['message']);
}
Expand Down
6 changes: 3 additions & 3 deletions lib/Model/ShopperStatistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public function listInvalidProperties()
{
$invalid_properties = array();

$allowed_values = currencyUtil::isValidCurrency($this->container['currency']);
$allowed_values = CurrencyUtil::isValidCurrency($this->container['currency']);
if (!$allowed_values['valid']) {
$invalid_properties[] = $allowed_values['message'];
}
Expand All @@ -192,7 +192,7 @@ public function listInvalidProperties()
public function valid()
{

$allowed_values = currencyUtil::isValidCurrency($this->container['currency']);
$allowed_values = CurrencyUtil::isValidCurrency($this->container['currency']);
if (!$allowed_values['valid']) {
return false;
}
Expand Down Expand Up @@ -367,7 +367,7 @@ public function getCurrency()
*/
public function setCurrency($currency)
{
$allowed_values = currencyUtil::isValidCurrency($currency);
$allowed_values = CurrencyUtil::isValidCurrency($currency);
if (!is_null($currency) && (!$allowed_values['valid'])) {
throw new \InvalidArgumentException($allowed_values['message']);
}
Expand Down

0 comments on commit a81e65b

Please sign in to comment.