Code Duplication    Length = 16-16 lines in 2 locations

includes/admin/admin-actions.php 2 locations

@@ 156-171 (lines=16) @@
153
		$payment_count = isset( $_GET['payment'] ) ? count( $_GET['payment'] ) : 0;
154
155
		switch ( $_GET['action'] ) {
156
			case 'delete':
157
				Give()->notices->register_notice( array(
158
					'id'          => 'bulk_action_delete',
159
					'type'        => 'updated',
160
					'description' => sprintf(
161
						_n(
162
							'Successfully deleted one transaction.',
163
							'Successfully deleted %d transactions.',
164
							$payment_count,
165
							'give'
166
						),
167
						$payment_count ),
168
					'show'        => true,
169
				) );
170
171
				break;
172
173
			case 'resend-receipt':
174
				Give()->notices->register_notice( array(
@@ 173-188 (lines=16) @@
170
171
				break;
172
173
			case 'resend-receipt':
174
				Give()->notices->register_notice( array(
175
					'id'          => 'bulk_action_resend_receipt',
176
					'type'        => 'updated',
177
					'description' => sprintf(
178
						_n(
179
							'Successfully sent email receipt to one recipient.',
180
							'Successfully sent email receipts to %d recipients.',
181
							$payment_count,
182
							'give'
183
						),
184
						$payment_count
185
					),
186
					'show'        => true,
187
				) );
188
				break;
189
		}
190
	}
191