Skip to content

Commit

Permalink
Merge pull request #336 from woocommerce/fix/phpjs-semicolon
Browse files Browse the repository at this point in the history
  • Loading branch information
tomalec authored Nov 27, 2023
2 parents 6ad1eb8 + b3f37e1 commit 6a5812b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-wc-google-gtag-js.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public function variant_data( $data, $product, $variation ) {
* @return string
*/
public static function get_event_code( string $event, $data ): string {
return sprintf( "%s('event', '%s', %s)", self::tracker_var(), esc_js( $event ), ( is_array( $data ) ? self::format_event_data( $data ) : $data ) );
return sprintf( "%s('event', '%s', %s);", self::tracker_var(), esc_js( $event ), ( is_array( $data ) ? self::format_event_data( $data ) : $data ) );
}

/**
Expand Down

0 comments on commit 6a5812b

Please sign in to comment.