]> git.mxchange.org Git - friendica.git/commitdiff
Changes:
authorRoland Häder <roland@mxchange.org>
Wed, 13 Jul 2022 04:50:40 +0000 (06:50 +0200)
committerRoland Häder <roland@mxchange.org>
Sun, 17 Jul 2022 20:54:52 +0000 (22:54 +0200)
- double-quotes to single
- added missing `@return`

boot.php
update.php

index c759bb93d25f1880f77ac2d82504962b5cb87882..2756a594782ea0f6e5ca8714443ed32f05ce0454 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -169,6 +169,8 @@ function remote_user()
  * This function save text in session, to be shown to the user at next page load
  *
  * @param string $s - Text of notice
+ *
+ * @return void
  */
 function notice(string $s)
 {
@@ -189,6 +191,8 @@ function notice(string $s)
  * This function save text in session, to be shown to the user at next page load
  *
  * @param string $s - Text of notice
+ *
+ * @return void
  */
 function info(string $s)
 {
index d66691b962c355e5245ee24868ba6a1cd8df526d..9126488c49c7ef71ec6034d45c70f1a37f49783b 100644 (file)
@@ -78,11 +78,11 @@ function update_1298()
                                        $a->strings = [];
 
                                        // First we get the the localizations
-                                       if (file_exists("view/lang/$lang/strings.php")) {
-                                               include "view/lang/$lang/strings.php";
+                                       if (file_exists('view/lang/$lang/strings.php')) {
+                                               include 'view/lang/$lang/strings.php';
                                        }
-                                       if (file_exists("addon/morechoice/lang/$lang/strings.php")) {
-                                               include "addon/morechoice/lang/$lang/strings.php";
+                                       if (file_exists('addon/morechoice/lang/$lang/strings.php')) {
+                                               include 'addon/morechoice/lang/$lang/strings.php';
                                        }
 
                                        $localizedStrings = $a->strings;
@@ -111,7 +111,7 @@ function update_1298()
                        }
                }
 
-               Logger::notice($translateKey . " fix completed", ['action' => 'update', 'translateKey' => $translateKey, 'Success' => $success, 'Fail' => $fail ]);
+               Logger::notice($translateKey . ' fix completed', ['action' => 'update', 'translateKey' => $translateKey, 'Success' => $success, 'Fail' => $fail ]);
        }
        return Update::SUCCESS;
 }
@@ -148,8 +148,8 @@ function update_1315()
 
 function update_1318()
 {
-       DBA::update('profile', ['marital' => "In a relation"], ['marital' => "Unavailable"]);
-       DBA::update('profile', ['marital' => "Single"], ['marital' => "Available"]);
+       DBA::update('profile', ['marital' => 'In a relation'], ['marital' => 'Unavailable']);
+       DBA::update('profile', ['marital' => 'Single'], ['marital' => 'Available']);
 
        Worker::add(PRIORITY_LOW, 'ProfileUpdate');
        return Update::SUCCESS;