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 /Metadata, /Migration, and /Net namespaces in /lib/private/ #39109

Conversation

fsamapoor
Copy link
Member

Summary

Following previous PRs taking advantage of PHP8's constructor property promotion in /core/ namespace, I have also made the required adjustments to the classes in /lib/private/Metadata, /lib/private/Migration, and /lib/private/Net namespaces.

The improvements in this PR include:

  • Using PHP8's constructor property promotion
  • Adding return types
  • Adding types to properties
  • Removing redundant docblocks

Checklist

@solracsf solracsf added 3. to review Waiting for reviews technical debt labels Jul 3, 2023
@solracsf solracsf added this to the Nextcloud 28 milestone Jul 3, 2023
@szaimen szaimen requested review from a team, ArtificialOwl, icewind1991 and Fenn-CS and removed request for a team July 12, 2023 11:49
Copy link
Contributor

@Fenn-CS Fenn-CS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You added return types to some functions so you might want to add type hints as well.

Please do verify, that the suggestions I made tie with the expected function types, for example $app does not have a function annotation at the top but I am guessing it would be a string.

lib/private/Migration/ConsoleOutput.php Show resolved Hide resolved
lib/private/Migration/ConsoleOutput.php Show resolved Hide resolved
lib/private/Migration/SimpleOutput.php Show resolved Hide resolved
lib/private/Migration/SimpleOutput.php Show resolved Hide resolved
lib/private/Migration/ConsoleOutput.php Show resolved Hide resolved
lib/private/Migration/BackgroundRepair.php Show resolved Hide resolved
@fsamapoor fsamapoor force-pushed the refactor_lib_private_metadata_migration_net branch 2 times, most recently from c35f042 to ac614bf Compare September 27, 2023 05:45
@skjnldsv skjnldsv mentioned this pull request Nov 1, 2023
@blizzz blizzz mentioned this pull request Nov 6, 2023
In lib/private namespace to improve code readability.

Signed-off-by: Faraz Samapoor <fsa@adlas.at>
Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
@fsamapoor fsamapoor force-pushed the refactor_lib_private_metadata_migration_net branch from ac614bf to cbc47a9 Compare November 7, 2023 06:13
@ChristophWurst ChristophWurst merged commit 2e24e70 into nextcloud:master Nov 7, 2023
46 of 50 checks passed
@fsamapoor fsamapoor deleted the refactor_lib_private_metadata_migration_net branch November 8, 2023 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants