fix: resolve PHPCS errors — remove short ternaries and fix docblock placement

- Replace 4 short ternary operators (?:) with explicit conditionals in Cost_Tracker
- Move declare(strict_types=1) after file-level docblocks in 3 template files
  (PHPCS requires docblock immediately after opening PHP tag)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Terence
2026-04-13 04:21:56 +07:00
parent b7da4f42b9
commit b92dc4b0d8
4 changed files with 16 additions and 9 deletions

View File

@@ -1,11 +1,12 @@
<?php
declare( strict_types=1 );
/**
* Analytics dashboard partial.
*
* @since 1.0.0
*/
declare( strict_types=1 );
if ( ! defined( 'ABSPATH' ) ) {
exit;
}