Skip to content

Commit

Permalink
add statement inline
Browse files Browse the repository at this point in the history
  • Loading branch information
faisal-alvi committed Jan 17, 2025
1 parent 79facf8 commit 972bcb0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions includes/Gateway/Gift_Card.php
Original file line number Diff line number Diff line change
Expand Up @@ -652,8 +652,7 @@ public function delete_sessions() {
* @return boolean
*/
public static function is_new() {
// phpcs:ignore WordPress.Security.NonceVerification.Missing
return isset( $_POST['square-gift-card-buying-option'] ) ? 'new' === wc_clean( wp_unslash( $_POST['square-gift-card-buying-option'] ) ) : false; // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
return isset( $_POST['square-gift-card-buying-option'] ) ? 'new' === wc_clean( wp_unslash( $_POST['square-gift-card-buying-option'] ) ) : false; // phpcs:ignore WordPress.Security.NonceVerification.Missing, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
}

/**
Expand All @@ -664,7 +663,6 @@ public static function is_new() {
* @return boolean
*/
public static function is_load() {
// phpcs:ignore WordPress.Security.NonceVerification.Missing
return isset( $_POST['square-gift-card-buying-option'] ) ? 'load' === wc_clean( wp_unslash( $_POST['square-gift-card-buying-option'] ) ) : false; // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
return isset( $_POST['square-gift-card-buying-option'] ) ? 'load' === wc_clean( wp_unslash( $_POST['square-gift-card-buying-option'] ) ) : false; // phpcs:ignore WordPress.Security.NonceVerification.Missing, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
}
}

0 comments on commit 972bcb0

Please sign in to comment.