]> git.mxchange.org Git - friendica.git/commitdiff
Fix indentation in Module\Inbox
authorHypolite Petovan <hypolite@mrpetovan.com>
Tue, 22 Jan 2019 17:19:15 +0000 (12:19 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Wed, 23 Jan 2019 14:07:02 +0000 (09:07 -0500)
src/Module/Inbox.php

index 5fc1b15f1ac23f058344099f30b1b6987faea33b..8842c66bcb67f82db1137c7e2b1479ca52dcaeb0 100644 (file)
@@ -2,6 +2,7 @@
 /**
  * @file src/Module/Inbox.php
  */
+
 namespace Friendica\Module;
 
 use Friendica\BaseModule;
@@ -26,15 +27,15 @@ class Inbox extends BaseModule
                }
 
                if (Config::get('debug', 'ap_inbox_log')) {
-            if (HTTPSignature::getSigner($postdata, $_SERVER)) {
-                $filename = 'signed-activitypub';
-            } else {
-                $filename = 'failed-activitypub';
-            }
-            $tempfile = tempnam(get_temppath(), $filename);
-            file_put_contents($tempfile, json_encode(['argv' => $a->argv, 'header' => $_SERVER, 'body' => $postdata], JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE));
-            Logger::log('Incoming message stored under ' . $tempfile);
-        }
+                       if (HTTPSignature::getSigner($postdata, $_SERVER)) {
+                               $filename = 'signed-activitypub';
+                       } else {
+                               $filename = 'failed-activitypub';
+                       }
+                       $tempfile = tempnam(get_temppath(), $filename);
+                       file_put_contents($tempfile, json_encode(['argv' => $a->argv, 'header' => $_SERVER, 'body' => $postdata], JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE));
+                       Logger::log('Incoming message stored under ' . $tempfile);
+               }
 
                if (!empty($a->argv[1])) {
                        $user = DBA::selectFirst('user', ['uid'], ['nickname' => $a->argv[1]]);