Code Duplication    Length = 7-7 lines in 2 locations

class-wp-bootstrap-navwalker.php 2 locations

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