summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-01-13 09:51:04 +0100
committerGitHub <noreply@github.com>2022-01-13 09:51:04 +0100
commit89d109a4d9a9c471f9dde7d5bd12a60ca91fe1f9 (patch)
tree76e56e0afc214eb0d9542b22e382c22fd77ae4b9 /core
parent7d5a63ab216347e412dc285667026eb66715cbf9 (diff)
parent6312c0df6949955d1cd59c3dd444268e0773293c (diff)
downloadnextcloud-server-89d109a4d9a9c471f9dde7d5bd12a60ca91fe1f9.tar.gz
nextcloud-server-89d109a4d9a9c471f9dde7d5bd12a60ca91fe1f9.zip
Merge pull request #30508 from nextcloud/fix/psaml-bin
Fix psalm not running
Diffstat (limited to 'core')
-rw-r--r--core/Command/App/GetPath.php2
-rw-r--r--core/Command/Config/App/GetConfig.php2
-rw-r--r--core/Command/Config/System/GetConfig.php2
-rw-r--r--core/Command/Db/Migrations/ExecuteCommand.php2
-rw-r--r--core/Command/Db/Migrations/GenerateCommand.php2
-rw-r--r--core/Command/Upgrade.php3
-rw-r--r--core/Command/User/Add.php2
-rw-r--r--core/Command/User/Setting.php4
-rw-r--r--core/Migrations/Version15000Date20180926101451.php2
9 files changed, 10 insertions, 11 deletions
diff --git a/core/Command/App/GetPath.php b/core/Command/App/GetPath.php
index 682c3fb9bac..2ec72385191 100644
--- a/core/Command/App/GetPath.php
+++ b/core/Command/App/GetPath.php
@@ -48,7 +48,7 @@ class GetPath extends Base {
*
* @param InputInterface $input An InputInterface instance
* @param OutputInterface $output An OutputInterface instance
- * @return null|int null or 0 if everything went fine, or an error code
+ * @return int 0 if everything went fine, or an error code
*/
protected function execute(InputInterface $input, OutputInterface $output): int {
$appName = $input->getArgument('app');
diff --git a/core/Command/Config/App/GetConfig.php b/core/Command/Config/App/GetConfig.php
index 0e42ae786d8..e0beb4ee84e 100644
--- a/core/Command/Config/App/GetConfig.php
+++ b/core/Command/Config/App/GetConfig.php
@@ -69,7 +69,7 @@ class GetConfig extends Base {
*
* @param InputInterface $input An InputInterface instance
* @param OutputInterface $output An OutputInterface instance
- * @return null|int null or 0 if everything went fine, or an error code
+ * @return int 0 if everything went fine, or an error code
*/
protected function execute(InputInterface $input, OutputInterface $output): int {
$appName = $input->getArgument('app');
diff --git a/core/Command/Config/System/GetConfig.php b/core/Command/Config/System/GetConfig.php
index 3fce89572c8..265fc70900f 100644
--- a/core/Command/Config/System/GetConfig.php
+++ b/core/Command/Config/System/GetConfig.php
@@ -65,7 +65,7 @@ class GetConfig extends Base {
*
* @param InputInterface $input An InputInterface instance
* @param OutputInterface $output An OutputInterface instance
- * @return null|int null or 0 if everything went fine, or an error code
+ * @return int 0 if everything went fine, or an error code
*/
protected function execute(InputInterface $input, OutputInterface $output): int {
$configNames = $input->getArgument('name');
diff --git a/core/Command/Db/Migrations/ExecuteCommand.php b/core/Command/Db/Migrations/ExecuteCommand.php
index a2dc2b92418..6f4559ee7b4 100644
--- a/core/Command/Db/Migrations/ExecuteCommand.php
+++ b/core/Command/Db/Migrations/ExecuteCommand.php
@@ -79,7 +79,7 @@ class ExecuteCommand extends Command implements CompletionAwareInterface {
$olderVersions = $ms->getMigratedVersions();
$olderVersions[] = '0';
$olderVersions[] = 'prev';
- if (in_array($version, $olderVersions, true)) {
+ if (in_array($version, $olderVersions, true)) {
$output->writeln('<error>Can not go back to previous migration without debug enabled</error>');
return 1;
}
diff --git a/core/Command/Db/Migrations/GenerateCommand.php b/core/Command/Db/Migrations/GenerateCommand.php
index b352e86ec62..47777b1561e 100644
--- a/core/Command/Db/Migrations/GenerateCommand.php
+++ b/core/Command/Db/Migrations/GenerateCommand.php
@@ -113,7 +113,7 @@ class {{classname}} extends SimpleMigrationStep {
$appName = $input->getArgument('app');
$version = $input->getArgument('version');
- if (!preg_match('/^\d{1,16}$/',$version)) {
+ if (!preg_match('/^\d{1,16}$/', $version)) {
$output->writeln('<error>The given version is invalid. Only 0-9 are allowed (max. 16 digits)</error>');
return 1;
}
diff --git a/core/Command/Upgrade.php b/core/Command/Upgrade.php
index efc7124f2ea..0591132e37f 100644
--- a/core/Command/Upgrade.php
+++ b/core/Command/Upgrade.php
@@ -247,8 +247,7 @@ class Upgrade extends Command {
$output->write('<comment>Maybe an upgrade is already in process. Please check the '
. 'logfile (data/nextcloud.log). If you want to re-run the '
. 'upgrade procedure, remove the "maintenance mode" from '
- . 'config.php and call this script again.</comment>'
- , true);
+ . 'config.php and call this script again.</comment>', true);
return self::ERROR_MAINTENANCE_MODE;
} else {
$output->writeln('<info>Nextcloud is already latest version</info>');
diff --git a/core/Command/User/Add.php b/core/Command/User/Add.php
index bb11a1ea5c9..574be6e421c 100644
--- a/core/Command/User/Add.php
+++ b/core/Command/User/Add.php
@@ -107,7 +107,7 @@ class Add extends Command {
$question = new Question('Confirm password: ');
$question->setHidden(true);
- $confirm = $helper->ask($input, $output,$question);
+ $confirm = $helper->ask($input, $output, $question);
if ($password !== $confirm) {
$output->writeln("<error>Passwords did not match!</error>");
diff --git a/core/Command/User/Setting.php b/core/Command/User/Setting.php
index b677540d170..04488cdeff1 100644
--- a/core/Command/User/Setting.php
+++ b/core/Command/User/Setting.php
@@ -178,7 +178,7 @@ class Setting extends Base {
return 1;
}
- if ($app === 'settings' && in_array($key , ['email', 'display_name'])) {
+ if ($app === 'settings' && in_array($key, ['email', 'display_name'])) {
$user = $this->userManager->get($uid);
if ($user instanceof IUser) {
if ($key === 'email') {
@@ -208,7 +208,7 @@ class Setting extends Base {
return 1;
}
- if ($app === 'settings' && in_array($key , ['email', 'display_name'])) {
+ if ($app === 'settings' && in_array($key, ['email', 'display_name'])) {
$user = $this->userManager->get($uid);
if ($user instanceof IUser) {
if ($key === 'email') {
diff --git a/core/Migrations/Version15000Date20180926101451.php b/core/Migrations/Version15000Date20180926101451.php
index e379b12490d..f70a786bbcd 100644
--- a/core/Migrations/Version15000Date20180926101451.php
+++ b/core/Migrations/Version15000Date20180926101451.php
@@ -44,7 +44,7 @@ class Version15000Date20180926101451 extends SimpleMigrationStep {
$schema = $schemaClosure();
$table = $schema->getTable('authtoken');
- $table->addColumn('password_invalid','boolean', [
+ $table->addColumn('password_invalid', 'boolean', [
'default' => 0,
'notnull' => false,
]);