Fix code standards
This commit is contained in:
parent
b6943aff36
commit
28a28517e5
|
@ -33,22 +33,22 @@ class RateLimitStatus extends BaseApi
|
||||||
{
|
{
|
||||||
if (!empty($parameters['extension']) && ($parameters['extension'] == 'xml')) {
|
if (!empty($parameters['extension']) && ($parameters['extension'] == 'xml')) {
|
||||||
$hash = [
|
$hash = [
|
||||||
'remaining-hits' => '150',
|
'remaining-hits' => '150',
|
||||||
'@attributes' => ["type" => "integer"],
|
'@attributes' => ["type" => "integer"],
|
||||||
'hourly-limit' => '150',
|
'hourly-limit' => '150',
|
||||||
'@attributes2' => ["type" => "integer"],
|
'@attributes2' => ["type" => "integer"],
|
||||||
'reset-time' => DateTimeFormat::utc('now + 1 hour', DateTimeFormat::ATOM),
|
'reset-time' => DateTimeFormat::utc('now + 1 hour', DateTimeFormat::ATOM),
|
||||||
'@attributes3' => ["type" => "datetime"],
|
'@attributes3' => ["type" => "datetime"],
|
||||||
'reset_time_in_seconds' => strtotime('now + 1 hour'),
|
'reset_time_in_seconds' => strtotime('now + 1 hour'),
|
||||||
'@attributes4' => ["type" => "integer"],
|
'@attributes4' => ["type" => "integer"],
|
||||||
];
|
];
|
||||||
} else {
|
} else {
|
||||||
$hash = [
|
$hash = [
|
||||||
'reset_time_in_seconds' => strtotime('now + 1 hour'),
|
'reset_time_in_seconds' => strtotime('now + 1 hour'),
|
||||||
'remaining_hits' => '150',
|
'remaining_hits' => '150',
|
||||||
'hourly_limit' => '150',
|
'hourly_limit' => '150',
|
||||||
'reset_time' => api_date(DateTimeFormat::utc('now + 1 hour', DateTimeFormat::ATOM)),
|
'reset_time' => api_date(DateTimeFormat::utc('now + 1 hour', DateTimeFormat::ATOM)),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
self::exit('hash', ['hash' => $hash], $parameters['extension'] ?? null);
|
self::exit('hash', ['hash' => $hash], $parameters['extension'] ?? null);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user