Skip to content

Commit 2bcf2f7

Browse files
committed
chore: linter compliances met
1 parent a9d274b commit 2bcf2f7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

access-functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ function woographql_create_nonce( $action = -1 ) {
316316
/**
317317
* Validate WPGraphQL for WooCommerce session transfer nonces.
318318
*
319-
* @param string $nonce Nonce to validated.
319+
* @param string $nonce Nonce to validated.
320320
* @param string|-1 $action Nonce name.
321321
*
322322
* @return false|int

includes/utils/class-ql-session-handler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ protected function validate_cart_token( $cart_token ) {
329329
$payload = (object) [
330330
'iat' => $parts->payload->iat,
331331
'exp' => $parts->payload->exp,
332-
'data' => (object) [ 'customer_id' => $parts->payload->user_id ?? '' ]
332+
'data' => (object) [ 'customer_id' => $parts->payload->user_id ?? '' ],
333333
];
334334
} catch ( \Throwable $error ) {
335335
return new \WP_Error( 'invalid_cart_token', $error->getMessage() );

0 commit comments

Comments
 (0)