* 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)
{
* 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)
{
$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;
}
}
- 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;
}
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;