Code Duplication    Length = 11-11 lines in 2 locations

src/components/points/includes/class-wordpoints-points-hooks.php 1 location

@@ 583-593 (lines=11) @@
580
						 */
581
						do_action( 'wordpoints_points_type_form_top', $slug );
582
583
						if ( 'hook-content' === $wrap ) {
584
585
							// Mark the prefix and suffix optional on the add new form.
586
							$prefix = _x( 'Prefix (optional):', 'points type', 'wordpoints' );
587
							$suffix = _x( 'Suffix (optional):', 'points type', 'wordpoints' );
588
589
						} else {
590
591
							$prefix = _x( 'Prefix:', 'points type', 'wordpoints' );
592
							$suffix = _x( 'Suffix:', 'points type', 'wordpoints' );
593
						}
594
595
						?>
596

src/components/points/admin/classes/screen/points/types.php 1 location

@@ 291-301 (lines=11) @@
288
			 */
289
			do_action( 'wordpoints_points_type_form_top', $slug );
290
291
			if ( $add_new ) {
292
293
				// Mark the prefix and suffix optional on the add new form.
294
				$prefix = _x( 'Prefix (optional):', 'points type', 'wordpoints' );
295
				$suffix = _x( 'Suffix (optional):', 'points type', 'wordpoints' );
296
297
			} else {
298
299
				$prefix = _x( 'Prefix:', 'points type', 'wordpoints' );
300
				$suffix = _x( 'Suffix:', 'points type', 'wordpoints' );
301
			}
302
303
			?>
304