-
-
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
Refactors Command/Encryption/Enable.php to improve code readability. #37665
Conversation
…ity. Improves the readability of the "execute" method by using early returns and reducing the code indentation. Signed-off-by: Faraz Samapoor <[email protected]>
} | ||
$defaultModule = $this->config->getAppValue('core', 'default_encryption_module', null); |
Check notice
Code scanning / Psalm
NullArgument
} | ||
$defaultModule = $this->config->getAppValue('core', 'default_encryption_module', null); | ||
if ($defaultModule === null) { |
Check notice
Code scanning / Psalm
DocblockTypeContradiction
CI failure is unrealted. So merge or wait for the branch-off? |
Thanks for your first pull request and welcome to the community! Feel free to keep them coming! If you are looking for issues to tackle then have a look at this selection: https://github.com/nextcloud/server/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22 |
Behind branch-off, this is for 28. |
Summary
Improves the readability of the "execute" method by using early returns and reducing the code indentation.