Completed
Pull Request — master (#304)
by
unknown
01:28
created
wp-bootstrap-navwalker.php 1 patch
Braces   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -134,18 +134,22 @@
 block discarded – undo
134 134
 								$pos = strpos( esc_attr( $item->attr_title ), 'glyphicon' );
135 135
 					if ( false !== $pos ) :
136 136
 						$item_output .= '<a' . $attributes . '><span class="glyphicon ' . esc_attr( $item->attr_title ) . '" aria-hidden="true"></span>&nbsp;';
137
-								else :
137
+								else {
138
+									:
138 139
 									$item_output .= '<a' . $attributes . '><i class="fa ' . esc_attr( $item->attr_title ) . '" aria-hidden="true"></i>&nbsp;';
140
+								}
139 141
 											endif;
140
-				else :
142
+				else {
143
+					:
141 144
 					$item_output .= '<a' . $attributes . '>';
145
+				}
142 146
 				endif;
143 147
 				$item_output .= $args->link_before . apply_filters( 'the_title', $item->title, $item->ID ) . $args->link_after;
144 148
 				if($args->has_children && $depth == 0){
145 149
 					$caret = ' <span class="caret"></span></a>';
146
-				}elseif ($args->has_children && $depth > 0){
150
+				} elseif ($args->has_children && $depth > 0){
147 151
 					$caret = ' <span class="caret-right"></span></a>';
148
-				}else{
152
+				} else{
149 153
 					$caret = '</a>';
150 154
 				}
151 155
 				$item_output .= $caret;
Please login to merge, or discard this patch.