Code Duplication    Length = 22-22 lines in 2 locations

projects/plugins/jetpack/modules/custom-post-types/nova.php 2 locations

@@ 1247-1268 (lines=22) @@
1244
	 *
1245
	 * @param string $field - Menu Item Markup settings field.
1246
	 */
1247
	function menu_item_loop_open_element( $field ) {
1248
		$markup = $this->get_menu_item_loop_markup();
1249
		/**
1250
		 * Filter a menu item's element opening tag.
1251
		 *
1252
		 * @module custom-content-types
1253
		 *
1254
		 * @since 4.4.0
1255
		 *
1256
		 * @param string       $tag    Menu item's element opening tag.
1257
		 * @param string       $field  Menu Item Markup settings field.
1258
		 * @param array        $markup Array of markup elements for the menu item.
1259
		 * @param false|object $term   Taxonomy term for current menu item.
1260
		 */
1261
		echo apply_filters(
1262
			'jetpack_nova_menu_item_loop_open_element',
1263
			'<' . tag_escape( $markup["{$field}_tag"] ) . $this->menu_item_loop_class( $markup["{$field}_class"] ) . ">\n",
1264
			$field,
1265
			$markup,
1266
			$this->menu_item_loop_current_term
1267
		);
1268
	}
1269
1270
	/**
1271
	 * Outputs a Menu Item Markup element closing tag
@@ 1275-1296 (lines=22) @@
1272
	 *
1273
	 * @param string $field - Menu Item Markup settings field
1274
	 */
1275
	function menu_item_loop_close_element( $field ) {
1276
		$markup = $this->get_menu_item_loop_markup();
1277
		/**
1278
		 * Filter a menu item's element closing tag.
1279
		 *
1280
		 * @module custom-content-types
1281
		 *
1282
		 * @since 4.4.0
1283
		 *
1284
		 * @param string       $tag    Menu item's element closing tag.
1285
		 * @param string       $field  Menu Item Markup settings field.
1286
		 * @param array        $markup Array of markup elements for the menu item.
1287
		 * @param false|object $term   Taxonomy term for current menu item.
1288
		 */
1289
		echo apply_filters(
1290
			'jetpack_nova_menu_item_loop_close_element',
1291
			'</' . tag_escape( $markup["{$field}_tag"] ) . ">\n",
1292
			$field,
1293
			$markup,
1294
			$this->menu_item_loop_current_term
1295
		);
1296
	}
1297
1298
	/**
1299
	 * Returns a Menu Item Markup element's class attribute.