src/class-email-notifier.php
public function render_html_email(
		Vulnerabilities $vulnerabilities,
		CssToInlineStyles $inliner = null
	) {
		$html = $this->template->render( 'emails/html/vulnerable.php', [
			'action_url' => admin_url( 'update-core.php' ),
			'vulnerabilities' => $vulnerabilities,
		] );
		$css = $this->template->render( 'emails/style.css' );
		$inliner = $inliner ?: new CssToInlineStyles();

		return $inliner->convert( $html, $css );
	}
public function render_html_email(
		Vulnerabilities $vulnerabilities,
		CssToInlineStyles $inliner = null
	) {
		$html = $this->template->render( 'emails/html/vulnerable.php', [
			'action_url' => admin_url( 'update-core.php' ),
			'vulnerabilities' => $vulnerabilities,
		] );
		$css = $this->template->render( 'emails/style.css' );
		$inliner = $inliner ?: new CssToInlineStyles();

		return $inliner->convert( $html, $css );
	}
public function render_html_email ( Vulnerabilities $ vulnerabilities , CssToInlineStyles $ inliner = null ) { $ html = $ this -> template -> render ( 'emails/html/vulnerable.php' , [ 'action_url' => admin_url ( 'update-core.php' ) , 'vulnerabilities' => $ vulnerabilities , ] ) ; $ css = $ this -> template -> render ( 'emails/style.css' ) ; $ inliner = $ inliner ? : new CssToInlineStyles ( ) ; return $ inliner -> convert ( $ html , $ css ) ; }
Render the contents of the HTML email notification.

@param  Vulnerabilities        $vulnerabilities Vulnerabilities list.
@param  CssToInlineStyles|null $inliner         Style inliner.

@return string
Render the contents of the HTML email notification .