@@ -17,7 +17,7 @@ |
||
17 | 17 | /** |
18 | 18 | * @link https://develop.battle.net/documentation/api-reference |
19 | 19 | */ |
20 | -class BattleNetEndpoints extends EndpointMap{ |
|
20 | +class BattleNetEndpoints extends EndpointMap { |
|
21 | 21 | |
22 | 22 | protected $userinfo = [ |
23 | 23 | 'path' => '/oauth/userinfo', |
@@ -43,7 +43,7 @@ discard block |
||
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 |
||
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 |