From c4e8deb3eff49cfcb5fac71034ba8a8c1dc3e57e Mon Sep 17 00:00:00 2001 From: peptiderepo Date: Thu, 23 Apr 2026 22:47:53 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20PHPCS=20=E2=80=94=20replace=20Unicode=20?= =?UTF-8?q?arrows=20with=20ASCII=20in=20comments?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- includes/services/opik/class-opik-trace-context.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/services/opik/class-opik-trace-context.php b/includes/services/opik/class-opik-trace-context.php index b925e17..ac48400 100644 --- a/includes/services/opik/class-opik-trace-context.php +++ b/includes/services/opik/class-opik-trace-context.php @@ -211,8 +211,8 @@ class PRAutoBlogger_Opik_Trace_Context { */ private static function generate_uuid7(): string { $ms = (int) ( microtime( true ) * 1000 ); - $ts_hex = str_pad( dechex( $ms ), 12, '0', STR_PAD_LEFT ); // 48-bit ts → 12 hex - $rand = bin2hex( random_bytes( 10 ) ); // 80 random bits → 20 hex + $ts_hex = str_pad( dechex( $ms ), 12, '0', STR_PAD_LEFT ); // 48-bit ts -> 12 hex + $rand = bin2hex( random_bytes( 10 ) ); // 80 random bits -> 20 hex // Group 3: version nibble '7' + 12 random bits (3 hex chars). $g3 = '7' . substr( $rand, 0, 3 );