Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
gin0115 committed Jan 4, 2024
1 parent dc46d47 commit 9fe239b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Services/View/PHP_Engine.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ public function component( Component $component, bool $print = true ): ?string {
$template = $compiled->template();

$view = file_exists( $template )
? $template
: sprintf( '%s%s%s.php', $this->base_view_path, \DIRECTORY_SEPARATOR, trim( $this->maybe_resolve_dot_notation( $template ) ) );
? $template
: sprintf( '%s%s%s.php', $this->base_view_path, \DIRECTORY_SEPARATOR, trim( $this->maybe_resolve_dot_notation( $template ) ) );

if ( $print ) {
print( $this->render_buffer( $view, $compiled->data() ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
Expand Down

0 comments on commit 9fe239b

Please sign in to comment.