From 9fe239bdf5f078369ade8b71aeb13dc05bed94e1 Mon Sep 17 00:00:00 2001 From: Glynn Quelch Date: Thu, 4 Jan 2024 16:20:42 +0000 Subject: [PATCH] Formatting --- src/Services/View/PHP_Engine.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Services/View/PHP_Engine.php b/src/Services/View/PHP_Engine.php index 367495c..d2cfcdd 100644 --- a/src/Services/View/PHP_Engine.php +++ b/src/Services/View/PHP_Engine.php @@ -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