fix: resolve PHPCS errors and PHPUnit test failures for CI
Move declare(strict_types=1) after file-level docblock in all 12 class files to satisfy WordPress Coding Standards docblock placement rule. Fix multi-line function call formatting in class-psa-admin.php. Align array double arrows and equals signs. Fix escaped backticks in AIGeneratorTest heredoc that broke markdown fence stripping tests. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
<?php
|
||||
declare( strict_types=1 );
|
||||
/**
|
||||
* Browsable peptide directory — REST endpoint, shortcode, and data formatting.
|
||||
*
|
||||
@@ -12,6 +11,7 @@ declare( strict_types=1 );
|
||||
* @see includes/class-psa-search.php — existing search shortcode (separate from directory)
|
||||
* @see assets/js/psa-directory.js — frontend grid, filter, modal logic
|
||||
*/
|
||||
declare( strict_types=1 );
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
|
||||
Reference in New Issue
Block a user