Code Duplication    Length = 4-4 lines in 2 locations

includes/class-wc-stripe-apple-pay-registration.php 2 locations

@@ 192-195 (lines=4) @@
189
			}
190
191
			if ( ! file_exists( $path . '/' . $dir ) ) {
192
				if ( ! @mkdir( $path . '/' . $dir, 0755 ) ) { // @codingStandardsIgnoreLine
193
					WC_Stripe_Logger::log( 'Error: ' . __( 'Unable to create domain association folder to domain root.', 'woocommerce-gateway-stripe' ) );
194
					return false;
195
				}
196
			}
197
198
			if ( ! @copy( WC_STRIPE_PLUGIN_PATH . '/' . $file, $fullpath ) ) { // @codingStandardsIgnoreLine
@@ 198-201 (lines=4) @@
195
				}
196
			}
197
198
			if ( ! @copy( WC_STRIPE_PLUGIN_PATH . '/' . $file, $fullpath ) ) { // @codingStandardsIgnoreLine
199
				WC_Stripe_Logger::log( 'Error: ' . __( 'Unable to copy domain association file to domain root.', 'woocommerce-gateway-stripe' ) );
200
				return false;
201
			}
202
203
			WC_Stripe_Logger::log( 'Domain association file updated.' );
204
			return true;