style(phpcs): autofix WordPress-Core violations via phpcbf
Run phpcbf --standard=WordPress-Core across includes/, prautoblogger.php, and uninstall.php. Fixed 1,362 formatting violations in 75 files: - Short array syntax: [] → array() - Line breaking for long function calls - Consistent indentation - Function call parameter alignment No logic changes; purely mechanical formatting.
This commit is contained in:
@@ -24,13 +24,13 @@ global $wpdb;
|
||||
*/
|
||||
|
||||
$prefix = $wpdb->prefix . 'prautoblogger_';
|
||||
$tables = [
|
||||
$tables = array(
|
||||
$prefix . 'source_data',
|
||||
$prefix . 'analysis_results',
|
||||
$prefix . 'generation_log',
|
||||
$prefix . 'content_scores',
|
||||
$prefix . 'event_log',
|
||||
];
|
||||
);
|
||||
|
||||
foreach ( $tables as $table ) {
|
||||
// phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- Table names are hardcoded above, not user input.
|
||||
@@ -77,10 +77,10 @@ $wpdb->query(
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
$hooks = [
|
||||
$hooks = array(
|
||||
'prautoblogger_daily_generation',
|
||||
'prautoblogger_collect_metrics',
|
||||
];
|
||||
);
|
||||
|
||||
foreach ( $hooks as $hook ) {
|
||||
$timestamp = wp_next_scheduled( $hook );
|
||||
|
||||
Reference in New Issue
Block a user