]> git.mxchange.org Git - friendica.git/commitdiff
Fix code standards
authorMichael <heluecht@pirati.ca>
Tue, 9 Nov 2021 21:50:56 +0000 (21:50 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 9 Nov 2021 21:50:56 +0000 (21:50 +0000)
src/Module/Api/Friendica/Account/RateLimitStatus.php

index f3d0dce9c8c40880b29513d90375727cffc9730b..d584eec0e77e6b9d58a131e000597932c6a85f47 100644 (file)
@@ -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);