Skip to content

Commit

Permalink
more lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nuritsha committed Sep 23, 2024
1 parent 59bc051 commit b1238ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/content/classes/render/widget-hero-render.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function render_text_container() {
Utils::print_unescaped_internal_string( $heading_output );
} ?>
<?php if ( $has_subheading ) {
$subheading_output = sprintf( '<%1$s %2$s>%3$s</%1$s>', Utils::validate_html_tag( $subheading_tag ), 'class="e-hero__subheading"', esc_html( $subheading_text ) );
$subheading_output = sprintf( '<%1$s %2$s>%3$s</%1$s>', Utils::validate_html_tag( $subheading_tag ), 'class="e-hero__subheading"', esc_html( $subheading_text ) );
// Escaped above
Utils::print_unescaped_internal_string( $subheading_output );
} ?>
Expand Down
4 changes: 2 additions & 2 deletions modules/content/widgets/hero.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ protected function add_content_section() {
$this->add_content_image_section();
}

protected function add_style_section() {
$this->add_style_content_section();
protected function add_style_section() {
$this->add_style_content_section();

Check failure on line 64 in modules/content/widgets/hero.php

View workflow job for this annotation

GitHub Actions / Lint PHP files

Tabs must be used to indent lines; spaces are not allowed
$this->add_style_image_section();
$this->add_style_box_section();
}
Expand Down

0 comments on commit b1238ec

Please sign in to comment.