Skip to content

Commit

Permalink
Remove unused $event_type variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Jinksi committed Oct 6, 2023
1 parent c7aaf93 commit dcae68f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions includes/class-wc-payments-webhook-processing-service.php
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,6 @@ private function process_webhook_payment_intent_succeeded( $event_body ) {
* @throws Invalid_Webhook_Data_Exception Required parameters not found.
*/
private function process_webhook_dispute_created( $event_body ) {
$event_type = $this->read_webhook_property( $event_body, 'type' );
$event_data = $this->read_webhook_property( $event_body, 'data' );
$event_object = $this->read_webhook_property( $event_data, 'object' );
$charge_id = $this->read_webhook_property( $event_object, 'charge' );
Expand Down Expand Up @@ -566,7 +565,6 @@ private function process_webhook_dispute_created( $event_body ) {
* @throws Invalid_Webhook_Data_Exception Required parameters not found.
*/
private function process_webhook_dispute_closed( $event_body ) {
$event_type = $this->read_webhook_property( $event_body, 'type' );
$event_data = $this->read_webhook_property( $event_body, 'data' );
$event_object = $this->read_webhook_property( $event_data, 'object' );
$charge_id = $this->read_webhook_property( $event_object, 'charge' );
Expand Down

0 comments on commit dcae68f

Please sign in to comment.