Skip to content

Commit

Permalink
Fixed support for PHP 7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Marvin-Magmodules committed Jun 25, 2019
1 parent 49841a3 commit 81552db
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Model/Api/UrlProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ class UrlProvider
/**#@+
* @var string
*/
private const BASE_URL_LIVE = 'https://api.paazl.com/v1/';
private const BASE_URL_TEST = 'https://api-acc.paazl.com/v1/';
const BASE_URL_LIVE = 'https://api.paazl.com/v1/';
const BASE_URL_TEST = 'https://api-acc.paazl.com/v1/';
/**#@- */

/**
Expand All @@ -36,7 +36,7 @@ public function __construct(Config $config)
/**
* @return string
*/
public function getBaseUrl(): string
public function getBaseUrl()
{
$result = self::BASE_URL_TEST;
if ($this->config->isProductionApiMode()) {
Expand All @@ -49,23 +49,23 @@ public function getBaseUrl(): string
/**
* @return string
*/
public function getCheckoutUrl(): string
public function getCheckoutUrl()
{
return $this->getBaseUrl() . 'checkout/';
}

/**
* @return string
*/
public function getCheckoutTokenUrl(): string
public function getCheckoutTokenUrl()
{
return $this->getBaseUrl() . 'checkout/token/';
}

/**
* @return string
*/
public function getOrderUrl(): string
public function getOrderUrl()
{
return $this->getBaseUrl() . 'order/';
}
Expand Down

0 comments on commit 81552db

Please sign in to comment.