From 89670be6614dd3943832947f216b197be06e0bd9 Mon Sep 17 00:00:00 2001 From: peptiderepo Date: Thu, 23 Apr 2026 22:34:06 +0700 Subject: [PATCH] fix: PHPCS spacing in backoff delay expression --- includes/services/opik/class-opik-client.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/services/opik/class-opik-client.php b/includes/services/opik/class-opik-client.php index 39493bf..ddceeb9 100644 --- a/includes/services/opik/class-opik-client.php +++ b/includes/services/opik/class-opik-client.php @@ -198,7 +198,7 @@ class PRAutoBlogger_Opik_Client { // Retry on network/timeout errors. if ( $attempt < $max_attempts - 1 ) { - $delay = (int) ( 2 ** ($attempt + 1) ); // 2s, 4s, 8s + $delay = (int) ( 2 ** ( $attempt + 1 ) ); // 2s, 4s, 8s sleep( $delay ); return $this->post( $endpoint, $payload, $attempt + 1 ); } @@ -242,7 +242,7 @@ class PRAutoBlogger_Opik_Client { ); if ( $attempt < $max_attempts - 1 ) { - $delay = (int) ( 2 ** ($attempt + 1) ); + $delay = (int) ( 2 ** ( $attempt + 1 ) ); sleep( $delay ); return $this->post( $endpoint, $payload, $attempt + 1 ); }