WPCS rule: blank * line required before tag block in doccomment.
Added blank before @var in both property docblocks.
Saved 2 lines by removing cosmetic blank lines between class
opening brace and first property, and between the two properties.
- Restored separate file docblock + class docblock (WPCS requires
class to have its own doc comment with short description)
- Property @var docblocks: expanded back to 4-line format with
short description on first line (WPCS MissingShortDescription)
- write_meta compact arrays: added
Universal.WhiteSpace.CommaSpacing.TooMuchSpaceAfter to
phpcs:disable block (column-aligned pairs use tab spacing)
- Class closing brace: removed blank line before }
- Trims @see and blank lines to keep file exactly at 300 lines
class-prv-cost-rollup-query.php:
- get_mtd_summary + get_model_breakdown: phpcs:disable/enable block for
InterpolatedNotPrepared (single-line ignore doesn't cover multi-line
string spans)
class-prv-probe-run-executor.php:
- Reduced to 290 lines (well under 300)
- write_meta array calls: phpcs:disable ArrayItemNoNewLine for compact
2-per-line format; write_io try/catch explicit comment on empty catch
- persist_result: expanded insert array to one item per line
- Class docblock consolidated; property @var docblocks to one-line format
- Closing class brace: removed extra blank line (PSR2 CloseBraceAfterBody)
tests/bootstrap.php + test-cost-audit.php:
- Added get_row() stub to stdClass_wpdb (PRV_Cost_Rollup_Query uses
get_row for get_mtd_summary, not get_var)
- Added wpdb_row key to initial state + prv_test_reset()
- Test 1: seed wpdb_row with expected row data instead of wpdb_var
PHP 8.1: Cannot use positional argument after argument unpacking —
class-prv-call-log-query.php line 77 (LIMIT/OFFSET args merged into
array before spread).
WPCS fixes across 8 files:
- class-prv-admin-page-css.php: short description capital letter
- class-prv-admin-page.php: docblock started on same line as closing brace
- class-prv-call-drawer-renderer.php: param spacing, empty elseif blocks,
extra indent on render_inline_script
- class-prv-call-log-query.php: InterpolatedNotPrepared (use
phpcs:disable/enable block for WHERE-clause interpolation)
- class-prv-cost-rollup-query.php: InterpolatedNotPrepared for GROUP BY
with dynamic column (phpcs:disable/enable block)
- class-prv-costs-renderer.php: AssociativeArrayFound on inline sub-arrays
- class-prv-probe-run-executor.php: docblock spacing, empty catch blocks,
inline array items, ArrayItemNoNewLine (phpcs:disable on write_meta calls)
- class-prv-probe-runner.php: extra space before ?? operator