style: phpcbf-style WPCS fixes (multi-line arrays, one arg per line, function-keyword spacing)

This commit is contained in:
peptiderepo
2026-04-23 15:03:28 +00:00
parent 238074f257
commit 130f9f719c
6 changed files with 94 additions and 29 deletions

View File

@@ -80,7 +80,7 @@ class PRAutoBlogger_Opik_Dispatcher {
$failed_items,
array_filter(
$batch,
function( $item ) {
function ( $item ) {
return 'trace' === $item['type'];
}
)
@@ -96,7 +96,7 @@ class PRAutoBlogger_Opik_Dispatcher {
$failed_items,
array_filter(
$batch,
function( $item ) {
function ( $item ) {
return 'span' === $item['type'];
}
)

View File

@@ -83,7 +83,7 @@ class PRAutoBlogger_Opik_Span_Queue {
$now = time();
$queue = array_filter(
$queue,
function( $item ) use ( $now ) {
function ( $item ) use ( $now ) {
return ( $now - $item['enqueued'] ) < self::ITEM_TTL_SECONDS;
}
);