Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 913-915 (lines=3) @@
910
	 * @since 4.3
911
	 */
912
	public function prepare_intent_for_order_pay_page( $order = null ) {
913
		if ( ! isset( $order ) || empty( $order ) ) {
914
			$order = wc_get_order( absint( get_query_var( 'order-pay' ) ) );
915
		}
916
		$intent = $this->get_intent_from_order( $order );
917
918
		if ( ! $intent ) {
@@ 951-953 (lines=3) @@
948
	 * @since 4.2
949
	 */
950
	public function render_payment_intent_inputs( $order = null ) {
951
		if ( ! isset( $order ) || empty( $order ) ) {
952
			$order = wc_get_order( absint( get_query_var( 'order-pay' ) ) );
953
		}
954
		if ( ! isset( $this->order_pay_intent ) ) {
955
			$this->prepare_intent_for_order_pay_page( $order );
956
		}