-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor files_sharing app commands #39898
Refactor files_sharing app commands #39898
Conversation
To improve code readability. Signed-off-by: Faraz Samapoor <fsa@adlas.at>
To improve code readability. Signed-off-by: Faraz Samapoor <fsa@adlas.at>
} | ||
|
||
public function countFiles($numericId, OutputInterface $output) { | ||
public function countFiles($numericId, OutputInterface $output): void { |
Check notice
Code scanning / Psalm
MissingParamType
@@ -118,7 +112,7 @@ | |||
$output->writeln("$count files can be deleted for storage $numericId"); | |||
} | |||
|
|||
public function deleteStorage($id, $numericId, OutputInterface $output) { | |||
public function deleteStorage($id, $numericId, OutputInterface $output): void { |
Check notice
Code scanning / Psalm
MissingParamType
@@ -118,7 +112,7 @@ | |||
$output->writeln("$count files can be deleted for storage $numericId"); | |||
} | |||
|
|||
public function deleteStorage($id, $numericId, OutputInterface $output) { | |||
public function deleteStorage($id, $numericId, OutputInterface $output): void { |
Check notice
Code scanning / Psalm
MissingParamType
@@ -132,7 +126,7 @@ | |||
$this->deleteFiles($numericId, $output); | |||
} | |||
|
|||
public function deleteFiles($numericId, OutputInterface $output) { | |||
public function deleteFiles($numericId, OutputInterface $output): void { |
Check notice
Code scanning / Psalm
MissingParamType
Summary
I have made some adjustments to the
apps/files_sharing/lib/Command
classes to improve the code readability.The improvements in this PR include but are not limited to:
Checklist