protected function update_row_enclosure( $repo_name, $type, $branch_switcher = false ) {
		global $wp_version;
		$wp_list_table = _get_list_table( 'WP_Plugins_List_Table' );
		$repo_base     = $repo_name;
		$shiny_classes = ' notice inline notice-warning notice-alt';

		if ( 'plugin' === $type ) {
			$repo_base = dirname( $repo_name );
		}

		$open = '<tr class="plugin-update-tr" data-slug="' . esc_attr( $repo_base ) . '" data-plugin="' . esc_attr( $repo_name ) . '">
		<td colspan="' . $wp_list_table->get_column_count() . '" class="plugin-update colspanchange">
		<div class="update-message">';

		$enclosure = [
			'open'  => $open,
			'close' => '</div></td></tr>',
		];

		if ( version_compare( $wp_version, '4.6', '>=' ) ) {
			$open_p  = '<p>';
			$close_p = '</p>';
			if ( $branch_switcher ) {
				$open_p  = '';
				$close_p = '';
			}
			$enclosure = [
				'open'  => substr_replace( $open, $shiny_classes, -2, 0 ) . $open_p,
				'close' => $close_p . '</div></td></tr>',
			];
		}

		return $enclosure;
	}
protected function update_row_enclosure( $repo_name, $type, $branch_switcher = false ) {
		global $wp_version;
		$wp_list_table = _get_list_table( 'WP_Plugins_List_Table' );
		$repo_base     = $repo_name;
		$shiny_classes = ' notice inline notice-warning notice-alt';

		if ( 'plugin' === $type ) {
			$repo_base = dirname( $repo_name );
		}

		$open = '<tr class="plugin-update-tr" data-slug="' . esc_attr( $repo_base ) . '" data-plugin="' . esc_attr( $repo_name ) . '">
		<td colspan="' . $wp_list_table->get_column_count() . '" class="plugin-update colspanchange">
		<div class="update-message">';

		$enclosure = [
			'open'  => $open,
			'close' => '</div></td></tr>',
		];

		if ( version_compare( $wp_version, '4.6', '>=' ) ) {
			$open_p  = '<p>';
			$close_p = '</p>';
			if ( $branch_switcher ) {
				$open_p  = '';
				$close_p = '';
			}
			$enclosure = [
				'open'  => substr_replace( $open, $shiny_classes, -2, 0 ) . $open_p,
				'close' => $close_p . '</div></td></tr>',
			];
		}

		return $enclosure;
	}
protected function update_row_enclosure ( $ repo_name , $ type , $ branch_switcher = false ) { global $ wp_version ; $ wp_list_table = _get_list_table ( 'WP_Plugins_List_Table' ) ; $ repo_base = $ repo_name ; $ shiny_classes = ' notice inline notice-warning notice-alt' ; if ( 'plugin' === $ type ) { $ repo_base = dirname ( $ repo_name ) ; } $ open = '<tr class="plugin-update-tr" data-slug="' . esc_attr ( $ repo_base ) . '" data-plugin="' . esc_attr ( $ repo_name ) . '">
		<td colspan="' . $ wp_list_table -> get_column_count ( ) . '" class="plugin-update colspanchange">
		<div class="update-message">' ; $ enclosure = [ 'open' => $ open , 'close' => '</div></td></tr>' , ] ; if ( version_compare ( $ wp_version , '4.6' , '>=' ) ) { $ open_p = '<p>' ; $ close_p = '</p>' ; if ( $ branch_switcher ) { $ open_p = '' ; $ close_p = '' ; } $ enclosure = [ 'open' => substr_replace ( $ open , $ shiny_classes , - 2 , 0 ) . $ open_p , 'close' => $ close_p . '</div></td></tr>' , ] ; } return $ enclosure ; }
Return correct update row opening and closing tags for Shiny Updates.

@param string $repo_name
@param string $type            plugin|theme.
@param bool   $branch_switcher

@return array
Return correct update row opening and closing tags for Shiny Updates .