Skip to content

Commit

Permalink
chore: Linter compliance met
Browse files Browse the repository at this point in the history
  • Loading branch information
kidunot89 committed Aug 7, 2024
1 parent d09949c commit 760d52d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion includes/mutation/class-cart-apply-coupon.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public static function mutate_and_get_payload() {
// If validate and successful applied to cart, return payload.
if ( Cart_Mutation::validate_coupon( $input['code'], $reason ) && \WC()->cart->apply_coupon( $input['code'] ) ) {
do_action( 'woographql_update_session', true );

return [ 'code' => $input['code'] ];
}

Expand Down
1 change: 0 additions & 1 deletion includes/mutation/class-cart-update-item-quantities.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ static function ( $value ) {
$info
);


do_action( 'woographql_update_session', true );

return [
Expand Down
6 changes: 3 additions & 3 deletions includes/utils/class-ql-session-handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public function init() {

/**
* Mark the session as dirty.
*
*
* To trigger a save of the session data.
*
* @return void
Expand Down Expand Up @@ -417,12 +417,12 @@ function ( $headers ) {

/**
* {@inheritDoc}
*
*
* @return void
*/
public function set_customer_session_cookie( $set ) {
parent::set_customer_session_cookie( $set );

if ( $set ) {
$this->_issuing_new_cookie = true;
}
Expand Down

0 comments on commit 760d52d

Please sign in to comment.