Passed
Push — master ( ab34f4...936d9f )
by Claudio
03:32 queued 01:45
created
wp-rest-api-v2-menus.php 2 patches
Braces   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -191,9 +191,7 @@
 block discarded – undo
191 191
 
192 192
 			if ( empty( $parent ) ) {
193 193
 				unset($child_items[$key]);
194
-			}
195
-
196
-			else if (wp_api_v2_menus_dna_test($menu_items, $child_item)) {
194
+			} else if (wp_api_v2_menus_dna_test($menu_items, $child_item)) {
197 195
 				unset($child_items[$key]);
198 196
 			}
199 197
 		}
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -140,10 +140,10 @@
 block discarded – undo
140 140
 function wp_api_v2_menus_get_menu_items( $id ) {
141 141
 	$menu_items = wp_get_nav_menu_items( $id );
142 142
 
143
-    // fallback: if menu_items is null then return empty array
144
-    if($menu_items === false) {
145
-        return [];
146
-    }
143
+	// fallback: if menu_items is null then return empty array
144
+	if($menu_items === false) {
145
+		return [];
146
+	}
147 147
 
148 148
 	$all_menu_items = $menu_items;
149 149
 
Please login to merge, or discard this patch.