Commit 70b5d28
committed
Tweak - Move the stranded docblock onto the method it documents.
The docblock for test_get_backend_line_items_sends_shipping_only_status_as_exempt()
sat above the cart-path test instead, leaving the backend test with no docblock.
PHPCS binds a docblock to the immediately following token, so the orphan became a
floating comment and Squiz.Commenting.FunctionComment.Missing fired on the method
60 lines below it.
WordPress-Docs loads globally in .phpcs.php.xml and its tests/ exclusions do not
cover Squiz.Commenting.FunctionComment, so the sniff does apply to tests/.
Measured across both changed PHP files, --report=source:
merge-base 590070b : 192 violations / 31 sources
before this commit : 193 / 31 (FunctionComment.Missing 3 -> 4)
after this commit : 192 / 31, byte-identical to baseline1 parent 5af8404 commit 70b5d28
1 file changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2261 | 2261 | | |
2262 | 2262 | | |
2263 | 2263 | | |
2264 | | - | |
2265 | | - | |
2266 | | - | |
2267 | | - | |
2268 | | - | |
2269 | | - | |
2270 | 2264 | | |
2271 | 2265 | | |
2272 | 2266 | | |
| |||
2347 | 2341 | | |
2348 | 2342 | | |
2349 | 2343 | | |
| 2344 | + | |
| 2345 | + | |
| 2346 | + | |
| 2347 | + | |
| 2348 | + | |
| 2349 | + | |
2350 | 2350 | | |
2351 | 2351 | | |
2352 | 2352 | | |
| |||
0 commit comments