Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor config_eval() to use PREG_SET_ORDER
Call preg_match_all() with PREG_SET_ORDER flag instead of the default PREG_PATTERN_ORDER allows simplification of the replacement loop using a foreach. Assign the resulting match array elements to named variables makes the code self-documenting and easier to read.
- Loading branch information
Showing
1 changed file
with
15 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters