Code Duplication    Length = 9-9 lines in 2 locations

extensions/blocks/donations/donations.php 2 locations

@@ 117-125 (lines=9) @@
114
			$attr['oneTimeDonation']
115
		),
116
	);
117
	if ( $attr['monthlyDonation']['show'] ) {
118
		$donations['1 month'] = array_merge(
119
			array(
120
				'title' => __( 'Monthly', 'jetpack' ),
121
				'class' => 'donations__monthly-item',
122
			),
123
			$attr['monthlyDonation']
124
		);
125
	}
126
	if ( $attr['annualDonation']['show'] ) {
127
		$donations['1 year'] = array_merge(
128
			array(
@@ 126-134 (lines=9) @@
123
			$attr['monthlyDonation']
124
		);
125
	}
126
	if ( $attr['annualDonation']['show'] ) {
127
		$donations['1 year'] = array_merge(
128
			array(
129
				'title' => __( 'Yearly', 'jetpack' ),
130
				'class' => 'donations__annual-item',
131
			),
132
			$attr['annualDonation']
133
		);
134
	}
135
136
	$currency   = $attr['currency'];
137
	$nav        = '';