-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Refactors files_external app commands #39131
Refactors files_external app commands #39131
Conversation
} | ||
|
||
private function createStorage(StorageConfig $mount): IStorage { | ||
$class = $mount->getBackend()->getStorageClass(); | ||
return new $class($mount->getBackendOptions()); | ||
} | ||
|
||
private function markParentAsOutdated($mountId, $path, OutputInterface $output, bool $dryRun) { | ||
private function markParentAsOutdated($mountId, $path, OutputInterface $output, bool $dryRun): void { |
Check notice
Code scanning / Psalm
MissingParamType Note
} | ||
|
||
private function createStorage(StorageConfig $mount): IStorage { | ||
$class = $mount->getBackend()->getStorageClass(); | ||
return new $class($mount->getBackendOptions()); | ||
} | ||
|
||
private function markParentAsOutdated($mountId, $path, OutputInterface $output, bool $dryRun) { | ||
private function markParentAsOutdated($mountId, $path, OutputInterface $output, bool $dryRun): void { |
Check notice
Code scanning / Psalm
MissingParamType Note
$backend = $storage->getBackend(); | ||
$backend->manipulateStorageConfig($storage); | ||
} | ||
|
||
private function updateStorageStatus(StorageConfig &$storage, $configInput, OutputInterface $output) { | ||
private function updateStorageStatus(StorageConfig &$storage, $configInput, OutputInterface $output): void { |
Check notice
Code scanning / Psalm
MissingParamType Note
CI and Psalm failing 🔴 |
Psalm's not failing. Is it? Other failing actions do not seem to be related to the changes that I have made and none of them are labeled as "Required". |
437d0b1
to
86822ee
Compare
To improve code readability. Signed-off-by: Faraz Samapoor <[email protected]> Signed-off-by: Faraz Samapoor <[email protected]>
Co-authored-by: Côme Chilliet <[email protected]> Signed-off-by: Faraz Samapoor <[email protected]> Signed-off-by: Faraz Samapoor <[email protected]>
86822ee
to
eab7818
Compare
CI failure unrelated |
Summary
I have made some adjustments to the
apps/files_external/lib/Command
classes to improve code readability.The improvements in this PR include but are not limited to:
Checklist