-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #5688 ArrayIndentationFixer - fix for really long arrays (kubawer…
…los) This PR was merged into the 2.19 branch. Discussion ---------- ArrayIndentationFixer - fix for really long arrays Reference: https://github.com/aws/aws-sdk-php/blob/3.180.2/src/data/ec2/2016-11-15/api-2.json.php Code in test case has 100k tokens, code from reference file has 174k tokens. Without the fix the newly added tests was taking around 1700 seconds (for each `[` it was searching for new line before it - token by token). Commits ------- e17cdb2 ArrayIndentationFixer - fix for really long arrays
- Loading branch information
Showing
3 changed files
with
43 additions
and
3 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--TEST-- | ||
Test if array_indentation can handle huge arrays. | ||
--RULESET-- | ||
{ | ||
"array_indentation": true | ||
} | ||
--REQUIREMENTS-- | ||
{"php": 70000} |
Large diffs are not rendered by default.
Oops, something went wrong.