Code Duplication    Length = 1-3 lines in 2 locations

includes/class-sensei-settings-api.php 2 locations

@@ 130-130 (lines=1) @@
127
			foreach ( $sections as $k => $v ) {
128
				$count++;
129
				$html .= '<li><a href="' . $v['href'] . '"';
130
				if ( isset( $v['class'] ) && ( $v['class'] != '' ) ) { $html .= ' class="' . esc_attr( $v['class'] ) . '"'; }
131
				$html .= '>' . esc_attr( $v['name'] ) . '</a>';
132
				if ( $count <= count( $sections ) ) { $html .= ' | '; }
133
				$html .= '</li>' . "\n";
@@ 606-608 (lines=3) @@
603
	 */
604
	public function form_field_info ( $args ) {
605
		$class = '';
606
		if ( isset( $args['data']['class'] ) ) {
607
			$class = ' ' . esc_attr( $args['data']['class'] );
608
		}
609
		$html = '<div id="' . $args['key'] . '" class="info-box' . $class . '">' . "\n";
610
		if ( isset( $args['data']['name'] ) && ( $args['data']['name'] != '' ) ) {
611
			$html .= '<h3 class="title">' . esc_html( $args['data']['name'] ) . '</h3>' . "\n";