Skip to content

Commit 3eea3a3

Browse files
committed
Lint fix
1 parent 3c41965 commit 3eea3a3

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/Command.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -608,8 +608,8 @@ public function queries( $args, $assoc_args ) {
608608
// Skip if filtering by callback and this isn't the right one
609609
if ( $callback && isset( $logger->callback ) ) {
610610
// Normalize callback for comparison
611-
$normalized_callback = trim((string) $logger->callback);
612-
$normalized_filter = trim($callback);
611+
$normalized_callback = trim( (string) $logger->callback );
612+
$normalized_filter = trim( $callback );
613613
if ( false === stripos( $normalized_callback, $normalized_filter ) ) {
614614
continue;
615615
}
@@ -619,7 +619,7 @@ public function queries( $args, $assoc_args ) {
619619
if ( $hook && isset( $logger->hook ) && $logger->hook !== $hook ) {
620620
continue;
621621
}
622-
622+
623623
// Skip if filtering for a specific hook and the logger has no hook property
624624
if ( $hook && ! isset( $logger->hook ) ) {
625625
continue;

src/Formatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ function ( $a, $b ) use ( $order, $orderby ) {
117117
);
118118
}
119119

120-
$location_index = array_search( 'location', $fields, true );
120+
$location_index = array_search( 'location', $fields, true );
121121
$non_numeric_fields = array( 'query', 'caller', 'hook', 'callback' );
122122
foreach ( $items as $item ) {
123123
$values = array_values( \WP_CLI\Utils\pick_fields( $item, $fields ) );

0 commit comments

Comments
 (0)