Code Duplication    Length = 7-7 lines in 2 locations

class-wp-bootstrap-navwalker.php 2 locations

@@ 43-49 (lines=7) @@
40
		 * @param stdClass $args   An object of wp_nav_menu() arguments.
41
		 */
42
		public function start_lvl( &$output, $depth = 0, $args = array() ) {
43
			if ( isset( $args->item_spacing ) && 'discard' === $args->item_spacing ) {
44
				$t = '';
45
				$n = '';
46
			} else {
47
				$t = "\t";
48
				$n = "\n";
49
			}
50
			$indent = str_repeat( $t, $depth );
51
			// Default class to add to the file.
52
			$classes = array( 'dropdown-menu' );
@@ 97-103 (lines=7) @@
94
		 * @param int      $id     Current item ID.
95
		 */
96
		public function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
97
			if ( isset( $args->item_spacing ) && 'discard' === $args->item_spacing ) {
98
				$t = '';
99
				$n = '';
100
			} else {
101
				$t = "\t";
102
				$n = "\n";
103
			}
104
			$indent = ( $depth ) ? str_repeat( $t, $depth ) : '';
105
106
			$classes = empty( $item->classes ) ? array() : (array) $item->classes;