Code Duplication    Length = 8-8 lines in 2 locations

includes/admin/tools/export/give-export-donations-exporter.php 1 location

@@ 194-201 (lines=8) @@
191
				case 'company':
192
					$cols['company'] = __( 'Company Name', 'give' );
193
					break;
194
				case 'address':
195
					$cols['address_line1']   = __( 'Address 1', 'give' );
196
					$cols['address_line2']   = __( 'Address 2', 'give' );
197
					$cols['address_city']    = __( 'City', 'give' );
198
					$cols['address_state']   = __( 'State', 'give' );
199
					$cols['address_zip']     = __( 'Zip', 'give' );
200
					$cols['address_country'] = __( 'Country', 'give' );
201
					break;
202
				case 'comment':
203
					$cols['comment'] = __( 'Donor Comment', 'give' );
204
					break;

includes/admin/tools/export/class-batch-export-donors.php 1 location

@@ 185-192 (lines=8) @@
182
183
			switch ( $key ) {
184
185
				case 'address':
186
					$cols['address_line1']   = esc_html__( 'Address', 'give' );
187
					$cols['address_line2']   = esc_html__( 'Address 2', 'give' );
188
					$cols['address_city']    = esc_html__( 'City', 'give' );
189
					$cols['address_state']   = esc_html__( 'State', 'give' );
190
					$cols['address_zip']     = esc_html__( 'Zip', 'give' );
191
					$cols['address_country'] = esc_html__( 'Country', 'give' );
192
					break;
193
194
				default:
195
					$cols[ $key ] = $value;