From 28a28517e5c54e9c5a31c85bc7a872472962e2b7 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 9 Nov 2021 21:50:56 +0000 Subject: [PATCH] Fix code standards --- .../Api/Friendica/Account/RateLimitStatus.php | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/Module/Api/Friendica/Account/RateLimitStatus.php b/src/Module/Api/Friendica/Account/RateLimitStatus.php index f3d0dce9c8..d584eec0e7 100644 --- a/src/Module/Api/Friendica/Account/RateLimitStatus.php +++ b/src/Module/Api/Friendica/Account/RateLimitStatus.php @@ -33,22 +33,22 @@ class RateLimitStatus extends BaseApi { if (!empty($parameters['extension']) && ($parameters['extension'] == 'xml')) { $hash = [ - 'remaining-hits' => '150', - '@attributes' => ["type" => "integer"], - 'hourly-limit' => '150', - '@attributes2' => ["type" => "integer"], - 'reset-time' => DateTimeFormat::utc('now + 1 hour', DateTimeFormat::ATOM), - '@attributes3' => ["type" => "datetime"], - 'reset_time_in_seconds' => strtotime('now + 1 hour'), - '@attributes4' => ["type" => "integer"], - ]; + 'remaining-hits' => '150', + '@attributes' => ["type" => "integer"], + 'hourly-limit' => '150', + '@attributes2' => ["type" => "integer"], + 'reset-time' => DateTimeFormat::utc('now + 1 hour', DateTimeFormat::ATOM), + '@attributes3' => ["type" => "datetime"], + 'reset_time_in_seconds' => strtotime('now + 1 hour'), + '@attributes4' => ["type" => "integer"], + ]; } else { $hash = [ - 'reset_time_in_seconds' => strtotime('now + 1 hour'), - 'remaining_hits' => '150', - 'hourly_limit' => '150', - 'reset_time' => api_date(DateTimeFormat::utc('now + 1 hour', DateTimeFormat::ATOM)), - ]; + 'reset_time_in_seconds' => strtotime('now + 1 hour'), + 'remaining_hits' => '150', + 'hourly_limit' => '150', + 'reset_time' => api_date(DateTimeFormat::utc('now + 1 hour', DateTimeFormat::ATOM)), + ]; } self::exit('hash', ['hash' => $hash], $parameters['extension'] ?? null); -- 2.39.5