Commit f5913cc
committed
PHPCS native ruleset: don't require exact array double arrow alignment
When the item with the _longest_ array key is removed, WPCS requires the double arrows in the whole array to be re-aligned.
Setting the [`exact` property](https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/wiki/Customizable-sniff-properties#array-alignment-allow-non-exact-alignment) to `false` removes this requirement and allows for cleaner diffs when this happens.
As PR 1547 removed a large number of items from the `Sniff::$autoEscapedFunctions` array, PHPCS was currently throwing warnings about the WPCS codebase.
This small tweaks gets rid of those, while still allowing `phpcbf` to fix them up if so desired.1 parent 1e920a4 commit f5913cc
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
0 commit comments