|
@@ -43,7 +43,7 @@ discard block |
|
|
block discarded – undo |
|
43
|
43
|
* @param \chillerlan\Settings\SettingsContainerInterface $options |
|
44
|
44
|
* @param \Psr\Log\LoggerInterface|null $logger |
|
45
|
45
|
*/ |
|
46
|
|
- public function __construct(ClientInterface $http, OAuthStorageInterface $storage, SettingsContainerInterface $options, LoggerInterface $logger = null){ |
|
|
46
|
+ public function __construct(ClientInterface $http, OAuthStorageInterface $storage, SettingsContainerInterface $options, LoggerInterface $logger = null) { |
|
47
|
47
|
parent::__construct($http, $storage, $options, $logger); |
|
48
|
48
|
|
|
49
|
49
|
$this->setRegion('eu'); |
|
@@ -58,7 +58,7 @@ discard block |
|
|
block discarded – undo |
|
58
|
58
|
public function setRegion(string $region):BattleNet{ |
|
59
|
59
|
$region = \strtolower($region); |
|
60
|
60
|
|
|
61
|
|
- if(!\in_array($region, ['apac', 'cn', 'eu', 'us'], true)){ |
|
|
61
|
+ if (!\in_array($region, ['apac', 'cn', 'eu', 'us'], true)) { |
|
62
|
62
|
throw new ProviderException('invalid region: '.$region); |
|
63
|
63
|
} |
|
64
|
64
|
|
Please login to merge, or discard this patch.