Code Duplication    Length = 7-7 lines in 2 locations

class-wp-bootstrap-navwalker.php 2 locations

@@ 58-64 (lines=7) @@
55
		 * @param WP_Nav_Menu_Args $args   An object of wp_nav_menu() arguments.
56
		 */
57
		public function start_lvl( &$output, $depth = 0, $args = null ) {
58
			if ( isset( $args->item_spacing ) && 'discard' === $args->item_spacing ) {
59
				$t = '';
60
				$n = '';
61
			} else {
62
				$t = "\t";
63
				$n = "\n";
64
			}
65
			$indent = str_repeat( $t, $depth );
66
			// Default class to add to the file.
67
			$classes = array( 'dropdown-menu' );
@@ 113-119 (lines=7) @@
110
		 * @param int              $id     Current item ID.
111
		 */
112
		public function start_el( &$output, $item, $depth = 0, $args = null, $id = 0 ) {
113
			if ( isset( $args->item_spacing ) && 'discard' === $args->item_spacing ) {
114
				$t = '';
115
				$n = '';
116
			} else {
117
				$t = "\t";
118
				$n = "\n";
119
			}
120
			$indent = ( $depth ) ? str_repeat( $t, $depth ) : '';
121
122
			if ( false !== strpos( $args->items_wrap, 'itemscope' ) && false === $this->has_schema ) {