]> git.mxchange.org Git - friendica.git/commitdiff
Fix indents
authornupplaPhil <admin+github@philipp.info>
Sun, 2 Feb 2020 08:22:30 +0000 (09:22 +0100)
committernupplaPhil <admin+github@philipp.info>
Sun, 2 Feb 2020 21:43:43 +0000 (22:43 +0100)
mod/lostpass.php
mod/removeme.php
src/Core/Update.php
src/Model/User.php
src/Module/Admin/Users.php

index 5856148d7d8427b1de5ca55b407a4d3f84a56684..34daeffd7d30809c15dd11d4b152e0df8de42255 100644 (file)
@@ -65,11 +65,11 @@ function lostpass_post(App $a)
                Login Name:     %3$s', $resetlink, DI::baseUrl(), $user['nickname']));
 
        $email = DI::emailer()
-                  ->newSystemMail((!empty($user['language'])) ? DI::l10n()->withLang($user['language']) : DI::l10n())
-                  ->withMessage(DI::l10n()->t('Password reset requested at %s', $sitename), $preamble, $body)
-                  ->forUser($user['uid'] ?? 0)
-                  ->withRecipient($user['email'])
-                  ->build();
+               ->newSystemMail((!empty($user['language'])) ? DI::l10n()->withLang($user['language']) : DI::l10n())
+               ->withMessage(DI::l10n()->t('Password reset requested at %s', $sitename), $preamble, $body)
+               ->forUser($user['uid'] ?? 0)
+               ->withRecipient($user['email'])
+               ->build();
 
        DI::emailer()->send($email);
        DI::baseUrl()->redirect();
index 86d1f04e34c15e96f29609b8a9466a5968a1b9f7..d6b24eb0cc6a245a32f2f3807aaf8ff3c2f50496 100644 (file)
@@ -42,13 +42,14 @@ function removeme_post(App $a)
                }
 
                $email = DI::emailer()
-                          ->newSystemMail((!empty($admin['language'])) ? DI::l10n()->withLang($admin['language']) : DI::l10n()->withLang('en'))
-                          ->withMessage(DI::l10n()->t('[Friendica System Notify]') . ' ' . DI::l10n()->t('User deleted their account'),
-                                  DI::l10n()->t('On your Friendica node an user deleted their account. Please ensure that their data is removed from the backups.'),
-                                  DI::l10n()->t('The user id is %d', local_user()))
-                          ->forUser($admin['uid'] ?? 0)
-                          ->withRecipient($admin['email'])
-                          ->build();
+                       ->newSystemMail((!empty($admin['language'])) ? DI::l10n()->withLang($admin['language']) : DI::l10n()->withLang('en'))
+                       ->withMessage(
+                               DI::l10n()->t('[Friendica System Notify]') . ' ' . DI::l10n()->t('User deleted their account'),
+                               DI::l10n()->t('On your Friendica node an user deleted their account. Please ensure that their data is removed from the backups.'),
+                               DI::l10n()->t('The user id is %d', local_user()))
+                       ->forUser($admin['uid'] ?? 0)
+                       ->withRecipient($admin['email'])
+                       ->build();
                DI::emailer()->send($email);
        }
 
index b1e0a7cf17034d4da9a5af8a259f030dc438b02b..620519a2369c868a8d14ebd35ebea141a35e89b5 100644 (file)
@@ -264,11 +264,11 @@ class Update
                        $body     = $l10n->t("The error message is\n[pre]%s[/pre]", $error_message);
 
                        $email = DI::emailer()
-                                  ->newSystemMail($l10n)
-                                  ->withMessage($l10n->t('[Friendica Notify] Database update'), $preamble, $body)
-                                  ->forUser($admin['uid'] ?? 0)
-                                  ->withRecipient($admin['email'])
-                                  ->build();
+                               ->newSystemMail($l10n)
+                               ->withMessage($l10n->t('[Friendica Notify] Database update'), $preamble, $body)
+                               ->forUser($admin['uid'] ?? 0)
+                               ->withRecipient($admin['email'])
+                               ->build();
                        DI::emailer()->send($email);
                }
 
@@ -300,11 +300,11 @@ class Update
                                        $from_build, $to_build));
 
                                $email = DI::emailer()
-                                          ->newSystemMail($l10n)
-                                          ->withMessage($l10n->t('[Friendica Notify] Database update'), $preamble)
-                                          ->forUser($admin['uid'] ?? 0)
-                                          ->withRecipient($admin['email'])
-                                          ->build();
+                                       ->newSystemMail($l10n)
+                                       ->withMessage($l10n->t('[Friendica Notify] Database update'), $preamble)
+                                       ->forUser($admin['uid'] ?? 0)
+                                       ->withRecipient($admin['email'])
+                                       ->build();
                                DI::emailer()->send($email);
                        }
                }
index 1431dd0d82153b316330e59709531829aa0f35df..6deb1c6aeef2ec69da956532d4526cd58e26fb56 100644 (file)
@@ -898,11 +898,11 @@ class User
                ));
 
                $email = DI::emailer()
-                          ->newSystemMail(DI::l10n())
-                          ->withMessage(DI::l10n()->t('Registration at %s', $sitename), $body)
-                          ->forUser($user['uid'] ?? 0)
-                          ->withRecipient($user['email'])
-                          ->build();
+                       ->newSystemMail(DI::l10n())
+                       ->withMessage(DI::l10n()->t('Registration at %s', $sitename), $body)
+                       ->forUser($user['uid'] ?? 0)
+                       ->withRecipient($user['email'])
+                       ->build();
                return DI::emailer()->send($email);
        }
 
@@ -966,11 +966,11 @@ class User
                ));
 
                $email = DI::emailer()
-                          ->newSystemMail($l10n)
-                          ->withMessage(DI::l10n()->t('Registration details for %s', $sitename), $preamble, $body)
-                          ->forUser($user['uid'] ?? 0)
-                          ->withRecipient($user['email'])
-                          ->build();
+                       ->newSystemMail($l10n)
+                       ->withMessage(DI::l10n()->t('Registration details for %s', $sitename), $preamble, $body)
+                       ->forUser($user['uid'] ?? 0)
+                       ->withRecipient($user['email'])
+                       ->build();
                return DI::emailer()->send($email);
        }
 
index 5ca50d11ac51de4e8b2623d9d99a2d4733fd5f99..cbb2fa7ac630cc747973321d34dc08d83d137bef 100644 (file)
@@ -77,11 +77,11 @@ class Users extends BaseAdmin
                        $body = sprintf($body, DI::baseUrl()->get(), $user['nickname'], $result['password'], DI::config()->get('config', 'sitename'));
 
                        $email = DI::emailer()
-                                  ->newSystemMail((!empty($user['language'])) ? DI::l10n()->withLang($user['language']) : DI::l10n())
-                                  ->withMessage(DI::l10n()->t('Registration details for %s', DI::config()->get('config', 'sitename')), $preamble, $body)
-                                  ->forUser($user['uid'] ?? 0)
-                                  ->withRecipient($user['email'])
-                                  ->build();
+                               ->newSystemMail((!empty($user['language'])) ? DI::l10n()->withLang($user['language']) : DI::l10n())
+                               ->withMessage(DI::l10n()->t('Registration details for %s', DI::config()->get('config', 'sitename')), $preamble, $body)
+                               ->forUser($user['uid'] ?? 0)
+                               ->withRecipient($user['email'])
+                               ->build();
                        return DI::emailer()->send($email);
                }