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

[1/3] Refactors /core controllers using constructor property promotion. #38636

Merged

Conversation

fsamapoor
Copy link
Member

This PR is the first part of the three-part refactoring of the /core controllers by using PHP8's constructor property promotion to remove redundant lines and make the code cleaner.

I figured I should split the changes into three parts to make reviewing the changes easier.

Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
@solracsf solracsf added the 3. to review Waiting for reviews label Jun 4, 2023
@solracsf solracsf added this to the Nextcloud 28 milestone Jun 4, 2023
@szaimen szaimen requested review from a team, ArtificialOwl, icewind1991 and come-nc and removed request for a team June 5, 2023 06:13
fsamapoor and others added 2 commits June 5, 2023 16:45
Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
fsamapoor and others added 2 commits June 5, 2023 18:26
Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
Based on nextcloud#38636 (comment)

Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
fsamapoor added a commit to fsamapoor/server that referenced this pull request Jun 5, 2023
Based on nextcloud#38636 (comment)

Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
@fsamapoor fsamapoor requested a review from come-nc June 5, 2023 15:13
fsamapoor added a commit to fsamapoor/server that referenced this pull request Jun 5, 2023
Based on nextcloud#38636 (comment)

Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
@come-nc come-nc requested review from susnux and artonge June 12, 2023 07:07
Copy link
Contributor

@artonge artonge left a comment

Choose a reason for hiding this comment

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

Looks good

core/Controller/AvatarController.php Show resolved Hide resolved
artonge pushed a commit to fsamapoor/server that referenced this pull request Jun 16, 2023
artonge pushed a commit to fsamapoor/server that referenced this pull request Jun 19, 2023
artonge pushed a commit to fsamapoor/server that referenced this pull request Jun 20, 2023
@fsamapoor fsamapoor deleted the constructor_property_promotion_part1 branch March 8, 2024 07:43
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.

5 participants