aboutsummaryrefslogtreecommitdiffstats
path: root/core/Command/User
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2024-08-23 15:10:27 +0200
committerDaniel Kesselberg <mail@danielkesselberg.de>2024-08-25 19:34:58 +0200
commitaf6de04e9e141466dc229e444ff3f146f4a34765 (patch)
tree7b93f521865cdecdadb33637dea33bea242e7969 /core/Command/User
parent1cc6b3577fdbeadece7e4e6478e7f7755555b41a (diff)
downloadnextcloud-server-af6de04e9e141466dc229e444ff3f146f4a34765.tar.gz
nextcloud-server-af6de04e9e141466dc229e444ff3f146f4a34765.zip
style: update codestyle for coding-standard 1.2.3
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'core/Command/User')
-rw-r--r--core/Command/User/Add.php4
-rw-r--r--core/Command/User/AuthTokens/Delete.php2
-rw-r--r--core/Command/User/ClearGeneratedAvatarCacheCommand.php4
-rw-r--r--core/Command/User/LastSeen.php2
-rw-r--r--core/Command/User/ListCommand.php4
-rw-r--r--core/Command/User/ResetPassword.php10
-rw-r--r--core/Command/User/SyncAccountDataCommand.php2
7 files changed, 14 insertions, 14 deletions
diff --git a/core/Command/User/Add.php b/core/Command/User/Add.php
index 60cf67e8df3..033d2bdc9a2 100644
--- a/core/Command/User/Add.php
+++ b/core/Command/User/Add.php
@@ -114,11 +114,11 @@ class Add extends Command {
$confirm = $helper->ask($input, $output, $question);
if ($password !== $confirm) {
- $output->writeln("<error>Passwords did not match!</error>");
+ $output->writeln('<error>Passwords did not match!</error>');
return 1;
}
} else {
- $output->writeln("<error>Interactive input or --password-from-env or --generate-password is needed for setting a password!</error>");
+ $output->writeln('<error>Interactive input or --password-from-env or --generate-password is needed for setting a password!</error>');
return 1;
}
diff --git a/core/Command/User/AuthTokens/Delete.php b/core/Command/User/AuthTokens/Delete.php
index 65c0147aa24..f2c75a8ad99 100644
--- a/core/Command/User/AuthTokens/Delete.php
+++ b/core/Command/User/AuthTokens/Delete.php
@@ -46,7 +46,7 @@ class Delete extends Base {
protected function execute(InputInterface $input, OutputInterface $output): int {
$uid = $input->getArgument('uid');
- $id = (int) $input->getArgument('id');
+ $id = (int)$input->getArgument('id');
$before = $input->getOption('last-used-before');
if ($before) {
diff --git a/core/Command/User/ClearGeneratedAvatarCacheCommand.php b/core/Command/User/ClearGeneratedAvatarCacheCommand.php
index fc9d70709c8..515b3a913b7 100644
--- a/core/Command/User/ClearGeneratedAvatarCacheCommand.php
+++ b/core/Command/User/ClearGeneratedAvatarCacheCommand.php
@@ -27,9 +27,9 @@ class ClearGeneratedAvatarCacheCommand extends Base {
}
protected function execute(InputInterface $input, OutputInterface $output): int {
- $output->writeln("Clearing avatar cache has started");
+ $output->writeln('Clearing avatar cache has started');
$this->avatarManager->clearCachedAvatars();
- $output->writeln("Cleared avatar cache successfully");
+ $output->writeln('Cleared avatar cache successfully');
return 0;
}
}
diff --git a/core/Command/User/LastSeen.php b/core/Command/User/LastSeen.php
index 61a6c97ce72..dbb611a4fff 100644
--- a/core/Command/User/LastSeen.php
+++ b/core/Command/User/LastSeen.php
@@ -64,7 +64,7 @@ class LastSeen extends Base {
}
if (!$input->getOption('all')) {
- $output->writeln("<error>Please specify a username, or \"--all\" to list all</error>");
+ $output->writeln('<error>Please specify a username, or "--all" to list all</error>');
return 1;
}
diff --git a/core/Command/User/ListCommand.php b/core/Command/User/ListCommand.php
index 3d592afd7ee..7c4364fccbc 100644
--- a/core/Command/User/ListCommand.php
+++ b/core/Command/User/ListCommand.php
@@ -58,9 +58,9 @@ class ListCommand extends Base {
protected function execute(InputInterface $input, OutputInterface $output): int {
if ($input->getOption('disabled')) {
- $users = $this->userManager->getDisabledUsers((int) $input->getOption('limit'), (int) $input->getOption('offset'));
+ $users = $this->userManager->getDisabledUsers((int)$input->getOption('limit'), (int)$input->getOption('offset'));
} else {
- $users = $this->userManager->searchDisplayName('', (int) $input->getOption('limit'), (int) $input->getOption('offset'));
+ $users = $this->userManager->searchDisplayName('', (int)$input->getOption('limit'), (int)$input->getOption('offset'));
}
$this->writeArrayInOutputFormat($input, $output, $this->formatUsers($users, (bool)$input->getOption('info')));
diff --git a/core/Command/User/ResetPassword.php b/core/Command/User/ResetPassword.php
index 3233424ff4c..2f18c3d473e 100644
--- a/core/Command/User/ResetPassword.php
+++ b/core/Command/User/ResetPassword.php
@@ -81,7 +81,7 @@ class ResetPassword extends Base {
$password = $helper->ask($input, $output, $question);
if ($password === null) {
- $output->writeln("<error>Password cannot be empty!</error>");
+ $output->writeln('<error>Password cannot be empty!</error>');
return 1;
}
@@ -90,11 +90,11 @@ class ResetPassword extends Base {
$confirm = $helper->ask($input, $output, $question);
if ($password !== $confirm) {
- $output->writeln("<error>Passwords did not match!</error>");
+ $output->writeln('<error>Passwords did not match!</error>');
return 1;
}
} else {
- $output->writeln("<error>Interactive input or --password-from-env is needed for entering a new password!</error>");
+ $output->writeln('<error>Interactive input or --password-from-env is needed for entering a new password!</error>');
return 1;
}
@@ -107,9 +107,9 @@ class ResetPassword extends Base {
}
if ($success) {
- $output->writeln("<info>Successfully reset password for " . $username . "</info>");
+ $output->writeln('<info>Successfully reset password for ' . $username . '</info>');
} else {
- $output->writeln("<error>Error while resetting password!</error>");
+ $output->writeln('<error>Error while resetting password!</error>');
return 1;
}
return 0;
diff --git a/core/Command/User/SyncAccountDataCommand.php b/core/Command/User/SyncAccountDataCommand.php
index 6a70f1239f6..e8fcccdaa28 100644
--- a/core/Command/User/SyncAccountDataCommand.php
+++ b/core/Command/User/SyncAccountDataCommand.php
@@ -48,7 +48,7 @@ class SyncAccountDataCommand extends Base {
}
protected function execute(InputInterface $input, OutputInterface $output): int {
- $users = $this->userManager->searchDisplayName('', (int) $input->getOption('limit'), (int) $input->getOption('offset'));
+ $users = $this->userManager->searchDisplayName('', (int)$input->getOption('limit'), (int)$input->getOption('offset'));
foreach ($users as $user) {
$this->updateUserAccount($user, $output);