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

Continue MathTrig Breakup - Penultimate? #1973

Merged
merged 4 commits into from
Apr 2, 2021
Merged

Continue MathTrig Breakup - Penultimate? #1973

merged 4 commits into from
Apr 2, 2021

Conversation

oleibman
Copy link
Collaborator

Continuing the process of breaking MathTrip.php up into smaller classes. This round takes care of about half of what is left, so perhaps one round after this one will finish the job:

  • ARABIC
  • COMBIN; also implemented COMBINA
  • FACTDOUBLE
  • GCD (which accepts and ignores empty cells as arguments, but returns VALUE if all the arguments are that way; LCM does the same)
  • LOG_BASE, LOG10, LN
  • implemented MUNIT
  • MOD
  • POWER
  • RAND, RANDBETWEEN (RANDARRAY is too complicated to implement with this ticket)

As you can see from the description, there are some functions which were combined in a single class. When not combined, I adopted PowerKiki's suggestion of using "execute" as the function name.

This is:

- [ ] a bugfix
- [ ] a new feature
- [x] code refactoring

Checklist:

Why this change is needed?

Maintainability.

oleibman and others added 4 commits March 29, 2021 18:29
Continuing the process of breaking MathTrip.php up into smaller classes. This round takes care of about half of what is left, so perhaps one round after this one will finish the job:
- ARABIC
- COMBIN; also implemented COMBINA
- FACTDOUBLE
- GCD (which accepts and ignores empty cells as arguments, but returns VALUE if all the arguments are that way; LCM does the same)
- LOG_BASE, LOG10, LN
- implemented MUNIT
- MOD
- POWER
- RAND, RANDBETWEEN (RANDARRAY is too complicated to implement with this ticket)

As you can see from the description, there are some functions which were combined in a single class. When not combined, I adopted PowerKiki's suggestion of using "execute" as the function name.
A handful of suggested type changes.
@MarkBaker MarkBaker merged commit a4982fd into PHPOffice:master Apr 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants