Code Duplication    Length = 7-7 lines in 2 locations

class-wp-bootstrap-navwalker.php 2 locations

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