]> git.mxchange.org Git - friendica.git/commitdiff
Changed:
authorRoland Häder <roland@mxchange.org>
Thu, 15 Sep 2022 00:33:36 +0000 (02:33 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 9 Jun 2023 19:45:59 +0000 (21:45 +0200)
- array initialization

src/Protocol/OStatus.php

index ff8fc3cbea9af9cd5294583e8eba98a42a0c39be..3d35394b92e586164b85c24bf0341d8b0f626767 100644 (file)
@@ -385,12 +385,14 @@ class OStatus
                        }
                }
 
-               $header = [];
-               $header['uid'] = $importer['uid'];
-               $header['network'] = Protocol::OSTATUS;
-               $header['wall'] = 0;
-               $header['origin'] = 0;
-               $header['gravity'] = Item::GRAVITY_COMMENT;
+               // Initial header elements
+               $header = [
+                       'uid'     => $importer['uid'],
+                       'network' => Protocol::OSTATUS,
+                       'wall'    => 0,
+                       'origin'  => 0,
+                       'gravity' => Item::GRAVITY_COMMENT,
+               ];
 
                if (!is_object($doc->firstChild) || empty($doc->firstChild->tagName)) {
                        return false;