- double-quotes to single
- added missing `@return`
This commit is contained in:
Roland Häder 2022-07-13 06:50:40 +02:00
parent 6175f9086e
commit db095b8559
No known key found for this signature in database
GPG Key ID: C82EDE5DDFA0BA77
2 changed files with 11 additions and 7 deletions

View File

@ -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)
{

View 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;