style: auto-fix PHPCS violations via phpcbf

This commit is contained in:
peptiderepo
2026-06-16 15:26:16 +00:00
parent 08d7696444
commit b9158d7dca
45 changed files with 1018 additions and 658 deletions

View File

@@ -18,11 +18,11 @@ global $wpdb;
/* ── 1. Drop custom tables ────────────────────────────────────────────── */
$tables = [
$tables = array(
$wpdb->prefix . 'pr_dosing_rows',
$wpdb->prefix . 'pr_legal_cells',
$wpdb->prefix . 'pr_ai_candidate_queue',
];
);
foreach ( $tables as $table ) {
// phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.SchemaChange
@@ -85,19 +85,19 @@ $wpdb->query(
*
* @see ARCHITECTURE.md — §2.9 Uninstall specification.
*/
$schema_meta_keys = [
$schema_meta_keys = array(
'_pr_molecular_formula',
'_pr_molecular_weight',
'_pr_aliases',
'_pr_faq_items',
];
);
foreach ( $schema_meta_keys as $meta_key ) {
// phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery
$wpdb->delete(
$wpdb->postmeta,
[ 'meta_key' => $meta_key ],
[ '%s' ]
array( 'meta_key' => $meta_key ),
array( '%s' )
);
}