Update comments and fix code style warnings

MAILPOET-6318
This commit is contained in:
Oluwaseun Olorunsola
2024-11-26 12:48:28 +01:00
committed by Jan Lysý
parent a15f8ba562
commit b1cc53ec5b
9 changed files with 58 additions and 50 deletions

View File

@@ -89,7 +89,7 @@ class Renderer {
*/
public function render( \WP_Post $post, string $subject, string $pre_header, string $language, $meta_robots = '' ): array { // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundAfterLastUsed
$template_id = 'mailpoet/mailpoet//' . ( get_page_template_slug( $post ) ? get_page_template_slug( $post ) : 'email-general' );
/** @var \WP_Block_Template $template */ // phpcs:ignore
/** @var \WP_Block_Template $template */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort -- used for phpstan
$template = $this->templates->get_block_template( $template_id );
$theme = $this->templates->get_block_template_theme( $template_id, $template->wp_id );