Code Duplication    Length = 5-5 lines in 2 locations

wp-admin/includes/class-wp-list-table.php 1 location

@@ 517-521 (lines=5) @@
514
			return '';
515
516
		$out = '<div class="' . ( $always_visible ? 'row-actions visible' : 'row-actions' ) . '">';
517
		foreach ( $actions as $action => $link ) {
518
			++$i;
519
			( $i == $action_count ) ? $sep = '' : $sep = ' | ';
520
			$out .= "<span class='$action'>$link$sep</span>";
521
		}
522
		$out .= '</div>';
523
524
		$out .= '<button type="button" class="toggle-row"><span class="screen-reader-text">' . __( 'Show more details' ) . '</span></button>';

wp-admin/includes/class-wp-ms-users-list-table.php 1 location

@@ 367-371 (lines=5) @@
364
365
			$i=0;
366
			$action_count = count( $actions );
367
			foreach ( $actions as $action => $link ) {
368
				++$i;
369
				$sep = ( $i == $action_count ) ? '' : ' | ';
370
				echo "<span class='$action'>$link$sep</span>";
371
			}
372
			echo '</small></span><br/>';
373
		}
374
	}