$results Verification rows. * @return array Re-indexed. */ public static function only_problems( array $results ): array { return array_values( array_filter( $results, static function ( $row ): bool { if ( ! is_array( $row ) ) { return true; } return self::STATUS_OK !== ( $row['status'] ?? '' ); } ) ); } /** * How many rows `only_problems()` would remove. * * Reported back to the caller so the omission is stated rather than silent — "3,763 matched and * are omitted" is information; a short list with no explanation is a puzzle. * * @since 0.0.45 * @param array $results Verification rows. * @return int */ public static function matched_count( array $results ): int { return count( $results ) - count( self::only_problems( $results ) ); } }