Skip to content

Commit

Permalink
Merge pull request #730 from owncloud/not-implemented-0
Browse files Browse the repository at this point in the history
fix: exit with success command line status 0 for not implemented things
  • Loading branch information
phil-davis authored Jan 10, 2024
2 parents 3a32600 + 7300e05 commit 2ac652e
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 31 deletions.
24 changes: 0 additions & 24 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,3 @@ parameters:
message: '#File ends with a trailing whitespace. This may cause problems when running the code in the web browser. Remove the closing \?\> mark or remove the whitespace.#'
path: src/Resources/views/partials/error.php
count: 1
-
message: '#Undefined variable: \$OC_Version$#'
path: src/Command/ExecuteCoreUpgradeScriptsCommand.php
count: 1
-
message: '#Undefined variable: \$OC_VersionCanBeUpgradedFrom$#'
path: src/Command/ExecuteCoreUpgradeScriptsCommand.php
count: 1
-
message: '#Undefined variable: \$CONFIG$#'
path: src/Utils/Locator.php
count: 2
-
message: '#Undefined variable: \$OC_Version$#'
path: src/Utils/Locator.php
count: 1
-
message: '#Undefined variable: \$OC_Channel$#'
path: src/Utils/Locator.php
count: 1
-
message: '#Undefined variable: \$OC_Build$#'
path: src/Utils/Locator.php
count: 1
2 changes: 1 addition & 1 deletion src/Command/BackupDataCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ protected function configure() {
*/
protected function execute(InputInterface $input, OutputInterface $output): int {
$output->writeln('upgrade:backupData command is not implemented');
return 1;
return 0;
}
}
2 changes: 1 addition & 1 deletion src/Command/BackupDbCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ protected function configure() {
*/
protected function execute(InputInterface $input, OutputInterface $output): int {
$output->writeln('upgrade:backupDb command is not implemented');
return 1;
return 0;
}
}
2 changes: 1 addition & 1 deletion src/Command/CleanCacheCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ protected function configure() {
*/
protected function execute(InputInterface $input, OutputInterface $output): int {
$output->writeln('upgrade:cleanCache command is not implemented');
return 1;
return 0;
}
}
2 changes: 1 addition & 1 deletion src/Command/PostUpgradeRepairCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ protected function configure() {
*/
protected function execute(InputInterface $input, OutputInterface $output): int {
$output->writeln('upgrade:postUpgradeRepair command is not implemented');
return 1;
return 0;
}
}
2 changes: 1 addition & 1 deletion src/Command/PreUpgradeRepairCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ protected function configure() {
*/
protected function execute(InputInterface $input, OutputInterface $output): int {
$output->writeln('upgrade:preUpgradeRepair command is not implemented');
return 1;
return 0;
}
}
2 changes: 1 addition & 1 deletion src/Command/RestartWebServerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ protected function configure() {
*/
protected function execute(InputInterface $input, OutputInterface $output): int {
$output->writeln('upgrade:restartWebServer command is not implemented');
return 1;
return 0;
}
}
2 changes: 1 addition & 1 deletion src/Command/UpdateConfigCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ protected function configure() {
*/
protected function execute(InputInterface $input, OutputInterface $output): int {
$output->writeln('upgrade:updateConfig command is not implemented');
return 1;
return 0;
}
}

0 comments on commit 2ac652e

Please sign in to comment.