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

Merge branch '4.2' #5060

Merged
merged 71 commits into from
Sep 8, 2021
Merged

Merge branch '4.2' #5060

merged 71 commits into from
Sep 8, 2021

Conversation

paulbalandan
Copy link
Member

Description

  • This was rebased against latest develop
  • For every merge conflict, incoming change is used. If there is doubt, the original PR is consulted. Then run php-cs-fixer to fix CS
  • Run a final CS linting to clean violations

Checklist:

  • Securely signed commits
  • Conforms to style guide

lonnieezell and others added 30 commits September 7, 2021 22:10
Co-authored-by: MGatner <mgatner@icloud.com>
Co-authored-by: MGatner <mgatner@icloud.com>
Co-authored-by: Mostafa Khudair <59371810+mostafakhudair@users.noreply.github.com>
Co-authored-by: John Paul E. Balandan, CPA <51850998+paulbalandan@users.noreply.github.com>
Co-authored-by: John Paul E. Balandan, CPA <51850998+paulbalandan@users.noreply.github.com>
@paulbalandan paulbalandan marked this pull request as draft September 7, 2021 15:50
@MGatner
Copy link
Member

MGatner commented Sep 7, 2021

Sorry Paul, I had done most of this last night and should have pushed it up - I didn't know you were going to work on it! We should compare results with this and #5061 because the rebase was messy and I probably made a few mistakes.

@paulbalandan
Copy link
Member Author

This one is fairly ready. I just don't know how to fix PHPCPD.

I don't know why the total commits in yours differ from mine. Maybe because empty commits during rebase got discarded? This PR is just missing 2 commits from yours (which I believe are just empty commits)

@MGatner
Copy link
Member

MGatner commented Sep 8, 2021

Yes I think that's the case - there were a couple of commits that I manually adjusted to the proper styling only to find that a layer commit was already going to do that, so those probably got removed. I will check out PHP CPD when I'm on desktop but let's plan to go with this one.

@MGatner
Copy link
Member

MGatner commented Sep 8, 2021

Not sure what was happening there, those lines weren't duplicates at all! Since we were already excluding part of SQLSRV I added Forge as well, not a big deal.

@paulbalandan paulbalandan marked this pull request as ready for review September 8, 2021 14:54
@paulbalandan
Copy link
Member Author

Thanks, @MGatner . Maybe at some point I can take a look at the exclusions to see a proper fix for them. Thanks for the review.

@paulbalandan paulbalandan merged commit 3ea4bac into codeigniter4:develop Sep 8, 2021
@sfadschm
Copy link
Contributor

sfadschm commented Sep 8, 2021

I think the marked passages are quite similar, except for the use of schema for SQLSRV. Does CPD have a similarity threshold so that this maybe just happened to be an edge case?

@paulbalandan
Copy link
Member Author

I also noticed that in a way that schema is the only difference so I was looking on how to extract the common functionality. Im not yet familiar with the options but I think I saw it can.

@MGatner
Copy link
Member

MGatner commented Sep 8, 2021

Yes you can adjust the threshold with CLI parameters. If someone wants to dig into this please do but it also isn't a big deal to exclude some files.

@sfadschm
Copy link
Contributor

sfadschm commented Sep 8, 2021

Yes you can adjust the threshold with CLI parameters. If someone wants to dig into this please do but it also isn't a big deal to exclude some files.

Agreed. However, as Paul said, the duplicate parts are extractable in principle. The general question would be, how much do we want to modularize for the sake of not duplicating code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.