Code Duplication    Length = 3-3 lines in 2 locations

includes/class-wc-gateway-stripe.php 2 locations

@@ 866-868 (lines=3) @@
863
	 * @since 4.3
864
	 */
865
	public function prepare_intent_for_order_pay_page( $order = null ) {
866
		if ( ! isset( $order ) || empty( $order ) ) {
867
			$order = wc_get_order( absint( get_query_var( 'order-pay' ) ) );
868
		}
869
		$intent = $this->get_intent_from_order( $order );
870
871
		if ( ! $intent ) {
@@ 897-899 (lines=3) @@
894
	 * @since 4.2
895
	 */
896
	public function render_payment_intent_inputs( $order = null ) {
897
		if ( ! isset( $order ) || empty( $order ) ) {
898
			$order = wc_get_order( absint( get_query_var( 'order-pay' ) ) );
899
		}
900
		if ( ! isset( $this->order_pay_intent ) ) {
901
			$this->prepare_intent_for_order_pay_page( $order );
902
		}