@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace cvweiss\projectbase\Controller\auth\eve; |
4 | 4 | |
5 | -use cvweiss\projectbase\Session; |
|
6 | 5 | use cvweiss\projectbase\Config; |
7 | 6 | |
8 | 7 | class login |
@@ -18,14 +18,14 @@ discard block |
||
18 | 18 | |
19 | 19 | $url = 'https://login.eveonline.com/oauth/token'; |
20 | 20 | $verify_url = 'https://login.eveonline.com/oauth/verify'; |
21 | - $header = 'Authorization: Basic '.base64_encode($clientID . ':' . $clientSecret); |
|
21 | + $header = 'Authorization: Basic ' . base64_encode($clientID . ':' . $clientSecret); |
|
22 | 22 | $fields_string = ''; |
23 | 23 | $fields = array( |
24 | 24 | 'grant_type' => 'authorization_code', |
25 | 25 | 'code' => filter_input(INPUT_GET, 'code'), |
26 | 26 | ); |
27 | 27 | foreach ($fields as $key => $value) { |
28 | - $fields_string .= $key.'='.$value.'&'; |
|
28 | + $fields_string .= $key . '=' . $value . '&'; |
|
29 | 29 | } |
30 | 30 | rtrim($fields_string, '&'); |
31 | 31 | $ch = curl_init(); |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | $refresh_token = $json['refresh_token']; |
50 | 50 | $ch = curl_init(); |
51 | 51 | // Get the Character details from SSO |
52 | - $header = 'Authorization: Bearer '.$access_token; |
|
52 | + $header = 'Authorization: Bearer ' . $access_token; |
|
53 | 53 | curl_setopt($ch, CURLOPT_URL, $verify_url); |
54 | 54 | curl_setopt($ch, CURLOPT_USERAGENT, Config::getInstance()->get("siteName")); |
55 | 55 | curl_setopt($ch, CURLOPT_HTTPHEADER, array($header)); |