fix: PHPCS spacing in backoff delay expression

This commit is contained in:
peptiderepo
2026-04-23 22:34:06 +07:00
parent 0d8dc67f1c
commit 89670be661

View File

@@ -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 );
}