Skip to content
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

Merged
merged 1 commit into from May 23, 2023

Conversation

fsamapoor
Copy link
Member

Summary

Improves the readability of the "execute" method by using early returns and reducing the code indentation.

…ity.

Improves the readability of the "execute" method by using early returns and reducing the code indentation.

Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
@szaimen szaimen added the 3. to review Waiting for reviews label Apr 11, 2023
@szaimen szaimen added this to the Nextcloud 27 milestone Apr 11, 2023
@szaimen szaimen requested review from a team, ArtificialOwl, icewind1991 and blizzz and removed request for a team April 11, 2023 08:00
}
$defaultModule = $this->config->getAppValue('core', 'default_encryption_module', null);

Check notice

Code scanning / Psalm

NullArgument Note

Argument 3 of OCP\IConfig::getAppValue cannot be null, null value provided to parameter with type string
}
$defaultModule = $this->config->getAppValue('core', 'default_encryption_module', null);
if ($defaultModule === null) {

Check notice

Code scanning / Psalm

DocblockTypeContradiction Note

string does not contain null
This was referenced May 3, 2023
@szaimen
Copy link
Contributor

szaimen commented May 16, 2023

CI failure is unrealted. So merge or wait for the branch-off?

@szaimen szaimen added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels May 16, 2023
@blizzz blizzz mentioned this pull request May 17, 2023
@blizzz blizzz modified the milestones: Nextcloud 27, Nextcloud 28 May 23, 2023
@blizzz blizzz merged commit 0fca823 into nextcloud:master May 23, 2023
32 of 34 checks passed
@welcome
Copy link

welcome bot commented May 23, 2023

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

@blizzz
Copy link
Member

blizzz commented May 23, 2023

CI failure is unrealted. So merge or wait for the branch-off?

Behind branch-off, this is for 28.

@fsamapoor fsamapoor deleted the patch-2 branch March 8, 2024 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants