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

Remove x() #6219

Merged
merged 3 commits into from Dec 1, 2018
Merged

Remove x() #6219

merged 3 commits into from Dec 1, 2018

Conversation

MrPetovan
Copy link
Collaborator

@MrPetovan MrPetovan commented Nov 30, 2018

The prank where we had a custom global function that did the same as a PHP native function but worse is now over.

I'm running this branch, so far so good.

Due to the fact that this PR removes a function used by addons, friendica/friendica-addons#779 should be merge BEFORE this one to prevent border case fatal errors.

Ideally, addons should also be pulled before the core as well.

- Remove extraneous parentheses around empty() calls
- Remove duplicate calls to intval(), count() or strlen() after empty()
- Replace ternary operators outputting binary value with empty() return value
- Rewrite defaults() without x()
@annando
Copy link
Collaborator

annando commented Nov 30, 2018

Can you have a look at the failed tests?

@MrPetovan
Copy link
Collaborator Author

Bless @nupplaphil.

@MrPetovan
Copy link
Collaborator Author

Given its extensiveness, this PR blocks me for further development.

@annando
Copy link
Collaborator

annando commented Dec 1, 2018

I had been on our companies Christmas party yesterday, so I had been blocked in some way as well :-) I will have a look at it today, but hopefully some second (or third) pair of eyes could have a look as well.

@annando annando merged commit 5a3991d into friendica:develop Dec 1, 2018
@MrPetovan MrPetovan deleted the task/remove-x branch December 1, 2018 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants