]> git.mxchange.org Git - friendica.git/commitdiff
Changed:
authorRoland Häder <roland@mxchange.org>
Sat, 13 Aug 2022 21:30:57 +0000 (23:30 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 19 Aug 2022 17:12:29 +0000 (19:12 +0200)
- changed double-quotes to single
- added some empty lines for better readability

src/Module/Api/ApiResponse.php
src/Module/Blocklist/Domain/Download.php

index 960ce3d2cb67460157939e99eaf9f6506a056454..81448769e3620fee8a9f67cef165f9c89cca5ce7 100644 (file)
@@ -107,6 +107,7 @@ class ApiResponse extends Response
         *
         * @param array $arr Array to be passed to template
         * @param int   $cid Contact ID of template
+        *
         * @return array
         */
        private function addRSSValues(array $arr, int $cid): array
@@ -149,6 +150,7 @@ class ApiResponse extends Response
                        case 'atom':
                        case 'xml':
                                return $this->createXML($data, $root_element);
+
                        case 'json':
                        default:
                                return $data;
@@ -219,6 +221,7 @@ class ApiResponse extends Response
                        case 'xml':
                                $this->setType(static::TYPE_XML);
                                break;
+
                        case 'json':
                                $this->setType(static::TYPE_JSON);
                                if (!empty($return)) {
@@ -229,9 +232,11 @@ class ApiResponse extends Response
                                        $return = $json;
                                }
                                break;
+
                        case 'rss':
                                $this->setType(static::TYPE_RSS);
                                break;
+
                        case 'atom':
                                $this->setType(static::TYPE_ATOM);
                                break;
index bc3c80a255e57181bc6d9266b54fa56b0e0a4e3d..ea07df91abd1c1f3d2bb6907759cf63cebd9ba59 100644 (file)
@@ -43,6 +43,7 @@ class Download extends \Friendica\BaseModule
 
        /**
         * @param array $request
+        *
         * @return void
         * @throws \Exception
         */
@@ -52,7 +53,7 @@ class Download extends \Friendica\BaseModule
 
                $etag = 'W/"' . $hash . '"';
                if (trim($_SERVER['HTTP_IF_NONE_MATCH'] ?? '') == $etag) {
-                       header("HTTP/1.1 304 Not Modified");
+                       header('HTTP/1.1 304 Not Modified');
                        System::exit();
                }