Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Basic code maintenance improvements #1099

Merged
merged 6 commits into from Oct 6, 2022
Merged

Conversation

GaryJones
Copy link
Contributor

See individual commits for details.

Move the function inside the conditional, update the function prefix, and change from PHP 5.4 to PHP 7.1
Removes the redundant `else` that covered most of the file.
Moves the `add_()` and similar calls to just above the callback function and related DocBlock if there is one.
- The `defined()` guard will stop misleading fatal errors if the file is accessed directly.
- Switch some define() to `const` - see https://www.linkedin.com/pulse/php-difference-between-define-constant-ankit-vishwakarma/ for why.
@GaryJones GaryJones added this to the 4.3.0 milestone Oct 6, 2022
@GaryJones GaryJones self-assigned this Oct 6, 2022
@GaryJones GaryJones merged commit 91c01a0 into develop Oct 6, 2022
@GaryJones GaryJones deleted the improve/basic-maintenance branch October 6, 2022 14:43
@GaryJones GaryJones restored the improve/basic-maintenance branch October 6, 2022 14:44
@GaryJones GaryJones deleted the improve/basic-maintenance branch October 6, 2022 14:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant