Fixed more typing issues
This commit is contained in:
parent
c3ff04cff8
commit
8263e8850d
@ -117,7 +117,8 @@ class APnutI
|
|||||||
/*$this->rate_limit = null;
|
/*$this->rate_limit = null;
|
||||||
$this->rate_limit_remaining = null;
|
$this->rate_limit_remaining = null;
|
||||||
$this->rate_limit_reset = null;*/
|
$this->rate_limit_reset = null;*/
|
||||||
$this->scope = [];
|
$this->scopes = [];
|
||||||
|
$this->scope = '';
|
||||||
$response = explode("\r\n\r\n", $response, 2);
|
$response = explode("\r\n\r\n", $response, 2);
|
||||||
$headers = $response[0];
|
$headers = $response[0];
|
||||||
if ($headers === 'HTTP/1.1 100 Continue') {
|
if ($headers === 'HTTP/1.1 100 Continue') {
|
||||||
@ -150,12 +151,12 @@ class APnutI
|
|||||||
$this->rate_limit_reset = (int)$v;
|
$this->rate_limit_reset = (int)$v;
|
||||||
break;
|
break;
|
||||||
case 'X-OAuth-Scopes':
|
case 'X-OAuth-Scopes':
|
||||||
$this->scope = (int)$v;
|
$this->scope = $v;
|
||||||
$this->scopes = explode(',', (int)$v);
|
$this->scopes = explode(',', $v);
|
||||||
break;
|
break;
|
||||||
case 'location':
|
case 'location':
|
||||||
case 'Location':
|
case 'Location':
|
||||||
$this->redirectTarget = (int)$v;
|
$this->redirectTarget = $v;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user