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:
@@ -129,20 +129,20 @@ function psa_enqueue_frontend_assets() {
|
||||
'ajaxurl' => admin_url( 'admin-ajax.php' ),
|
||||
'nonce' => wp_create_nonce( 'psa_search_nonce' ),
|
||||
'i18n' => array(
|
||||
'error' => __( 'Error:', 'peptide-search-ai' ),
|
||||
'searchFailed' => __( 'Search failed.', 'peptide-search-ai' ),
|
||||
'unexpected' => __( 'Unexpected response.', 'peptide-search-ai' ),
|
||||
'rateLimited' => __( 'Too many requests. Please try again later.', 'peptide-search-ai' ),
|
||||
'networkError' => __( 'Could not connect to the server. Please try again.', 'peptide-search-ai' ),
|
||||
'timeout' => __( 'Request timed out. The server took too long to respond. Please try again.', 'peptide-search-ai' ),
|
||||
'connectionError' => __( 'Network error. Please check your connection and try again.', 'peptide-search-ai' ),
|
||||
'serverError' => __( 'Server error. Please try again later.', 'peptide-search-ai' ),
|
||||
'unavailable' => __( 'Server is temporarily unavailable. Please try again later.', 'peptide-search-ai' ),
|
||||
'peptidesFound' => __( 'peptide(s) found', 'peptide-search-ai' ),
|
||||
'pendingMsg' => __( 'is currently being added to our database. Please check back again later.', 'peptide-search-ai' ),
|
||||
'invalidMsg' => __( 'does not appear to be a recognized peptide. Please check the spelling or try a different search term.', 'peptide-search-ai' ),
|
||||
'verified' => __( 'Verified', 'peptide-search-ai' ),
|
||||
'curated' => __( 'Curated', 'peptide-search-ai' ),
|
||||
'error' => __( 'Error:', 'peptide-search-ai' ),
|
||||
'searchFailed' => __( 'Search failed.', 'peptide-search-ai' ),
|
||||
'unexpected' => __( 'Unexpected response.', 'peptide-search-ai' ),
|
||||
'rateLimited' => __( 'Too many requests. Please try again later.', 'peptide-search-ai' ),
|
||||
'networkError' => __( 'Could not connect to the server. Please try again.', 'peptide-search-ai' ),
|
||||
'timeout' => __( 'Request timed out. The server took too long to respond. Please try again.', 'peptide-search-ai' ),
|
||||
'connectionError' => __( 'Network error. Please check your connection and try again.', 'peptide-search-ai' ),
|
||||
'serverError' => __( 'Server error. Please try again later.', 'peptide-search-ai' ),
|
||||
'unavailable' => __( 'Server is temporarily unavailable. Please try again later.', 'peptide-search-ai' ),
|
||||
'peptidesFound' => __( 'peptide(s) found', 'peptide-search-ai' ),
|
||||
'pendingMsg' => __( 'is currently being added to our database. Please check back again later.', 'peptide-search-ai' ),
|
||||
'invalidMsg' => __( 'does not appear to be a recognized peptide. Please check the spelling or try a different search term.', 'peptide-search-ai' ),
|
||||
'verified' => __( 'Verified', 'peptide-search-ai' ),
|
||||
'curated' => __( 'Curated', 'peptide-search-ai' ),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user