Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 899-901 (lines=3) @@
896
	 * @since 4.3
897
	 */
898
	public function prepare_intent_for_order_pay_page( $order = null ) {
899
		if ( ! isset( $order ) || empty( $order ) ) {
900
			$order = wc_get_order( absint( get_query_var( 'order-pay' ) ) );
901
		}
902
		$intent = $this->get_intent_from_order( $order );
903
904
		if ( ! $intent ) {
@@ 937-939 (lines=3) @@
934
	 * @since 4.2
935
	 */
936
	public function render_intent_inputs( $order = null ) {
937
		if ( ! isset( $order ) || empty( $order ) ) {
938
			$order = wc_get_order( absint( get_query_var( 'order-pay' ) ) );
939
		}
940
		if ( ! isset( $this->order_pay_intent ) ) {
941
			$this->prepare_intent_for_order_pay_page( $order );
942
		}