Skip to content

Commit f45f586

Browse files
committed
Tabs to spaces.
1 parent 8daebf6 commit f45f586

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

examples/battlenet.php

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,23 @@
2222

2323
if( empty( $_GET['code'] ) && !isset($_GET['go'] )) {
2424

25-
// Empty query; show the startup page.
26-
25+
// Empty query; show the startup page.
26+
2727
echo '
28-
29-
<p>Sign-in using Battle.net. Please pick your region:</p>
30-
31-
<p>
32-
<a href="?go&region=us">USA</a>
33-
<a href="?go&region=eu">Europe</a>
34-
<a href="?go&region=kr">Korea</a>
35-
<a href="?go&region=tw">Taiwan</a>
36-
<a href="?go&region=cn">China</a>
37-
</p>
38-
39-
';
40-
41-
die();
28+
29+
<p>Sign-in using Battle.net. Please pick your region:</p>
30+
31+
<p>
32+
<a href="?go&region=us">USA</a>
33+
<a href="?go&region=eu">Europe</a>
34+
<a href="?go&region=kr">Korea</a>
35+
<a href="?go&region=tw">Taiwan</a>
36+
<a href="?go&region=cn">China</a>
37+
</p>
38+
39+
';
40+
41+
die();
4242
}
4343

4444
//////////////////////////////////////////////////////////////////////////////
@@ -58,11 +58,11 @@
5858
$region = isset($_GET['region']) ? $_GET['region'] : "";
5959

6060
$region_map = array(
61-
'us' => BattleNet::API_URI_US, // USA - this is the default if you omit the base API URI.
62-
'eu' => BattleNet::API_URI_EU, // Europe
63-
'kr' => BattleNet::API_URI_KR, // Korea
64-
'tw' => BattleNet::API_URI_TW, // Taiwan
65-
'cn' => BattleNet::API_URI_CN, // China
61+
'us' => BattleNet::API_URI_US, // USA - this is the default if you omit the base API URI.
62+
'eu' => BattleNet::API_URI_EU, // Europe
63+
'kr' => BattleNet::API_URI_KR, // Korea
64+
'tw' => BattleNet::API_URI_TW, // Taiwan
65+
'cn' => BattleNet::API_URI_CN, // China
6666
);
6767

6868
// Get base API URI from region.
@@ -78,16 +78,16 @@
7878
// This was a callback request from Battle.net, get the token
7979
$token = $battlenetService->requestAccessToken( $_GET['code'] );
8080

81-
// See https://dev.battle.net/io-docs for OAuth request types.
82-
//
83-
// Without any scopes specified, we can get their BattleTag.
81+
// See https://dev.battle.net/io-docs for OAuth request types.
82+
//
83+
// Without any scopes specified, we can get their BattleTag.
8484
$result = json_decode( $battlenetService->request('/account/user') );
8585

86-
echo "Your BattleTag is \"$result->battletag\".";
86+
echo "Your BattleTag is \"$result->battletag\".";
8787

8888
} elseif( isset($_GET['go']) ) {
8989

9090
$url = $battlenetService->getAuthorizationUri();
9191
header( "Location: $url" );
92-
92+
9393
}

0 commit comments

Comments
 (0)