Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 872-874 (lines=3) @@
869
	 * @since 4.3
870
	 */
871
	public function prepare_intent_for_order_pay_page( $order = null ) {
872
		if ( ! isset( $order ) || empty( $order ) ) {
873
			$order = wc_get_order( absint( get_query_var( 'order-pay' ) ) );
874
		}
875
		$intent = $this->get_intent_from_order( $order );
876
877
		if ( ! $intent ) {
@@ 903-905 (lines=3) @@
900
	 * @since 4.2
901
	 */
902
	public function render_payment_intent_inputs( $order = null ) {
903
		if ( ! isset( $order ) || empty( $order ) ) {
904
			$order = wc_get_order( absint( get_query_var( 'order-pay' ) ) );
905
		}
906
		if ( ! isset( $this->order_pay_intent ) ) {
907
			$this->prepare_intent_for_order_pay_page( $order );
908
		}