Code Duplication    Length = 14-14 lines in 2 locations

includes/admin/class-wc-stripe-inbox-notes.php 2 locations

@@ 65-78 (lines=14) @@
62
		}
63
	}
64
65
	public static function create_success_note() {
66
		$note = new WC_Admin_Note();
67
		$note->set_title( __( 'Boost sales this holiday season with Apple Pay!', 'woocommerce-gateway-stripe' ) );
68
		$note->set_content( __( 'Now that you accept Apple Pay® with Stripe, you can increase conversion rates by letting your customers know that Apple Pay is available. Here’s a marketing guide to help you get started.', 'woocommerce-gateway-stripe' ) );
69
		$note->set_type( WC_Admin_Note::E_WC_ADMIN_NOTE_MARKETING );
70
		$note->set_name( self::SUCCESS_NOTE_NAME );
71
		$note->set_source( 'woocommerce-gateway-stripe' );
72
		$note->add_action(
73
			'marketing-guide',
74
			__( 'See marketing guide', 'woocommerce-gateway-stripe' ),
75
			'https://developer.apple.com/apple-pay/marketing/'
76
		);
77
		$note->save();
78
	}
79
80
	public static function create_failure_note() {
81
		$note = new WC_Admin_Note();
@@ 80-93 (lines=14) @@
77
		$note->save();
78
	}
79
80
	public static function create_failure_note() {
81
		$note = new WC_Admin_Note();
82
		$note->set_title( __( 'Apple Pay domain verification needed', 'woocommerce-gateway-stripe' ) );
83
		$note->set_content( __( 'The WooCommerce Stripe Gateway extension attempted to perform domain verification on behalf of your store, but was unable to do so. This must be resolved before Apple Pay can be offered to your customers.', 'woocommerce-gateway-stripe' ) );
84
		$note->set_type( WC_Admin_Note::E_WC_ADMIN_NOTE_INFORMATIONAL );
85
		$note->set_name( self::FAILURE_NOTE_NAME );
86
		$note->set_source( 'woocommerce-gateway-stripe' );
87
		$note->add_action(
88
			'learn-more',
89
			__( 'Learn more', 'woocommerce-gateway-stripe' ),
90
			'https://docs.woocommerce.com/document/stripe/#apple-pay'
91
		);
92
		$note->save();
93
	}
94
}
95