From 2950525f81cad589aa9813214886b835c4bf7d0a Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Tue, 9 Apr 2024 18:30:32 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/ViewRenderer.php | 9 +++------ tests/ViewRendererTest.php | 4 ++-- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/ViewRenderer.php b/src/ViewRenderer.php index 663e3de..f93290c 100644 --- a/src/ViewRenderer.php +++ b/src/ViewRenderer.php @@ -147,11 +147,10 @@ public function renderPartial(string $view, array $parameters = []): DataRespons * * @psalm-param array $parameters * - * @return string The rendering result. * @throws Throwable If an error occurred during rendering. * @throws ViewNotFoundException If the view file does not exist. - * * @throws RuntimeException If the view cannot be resolved. + * @return string The rendering result. */ public function renderAsString(string $view, array $parameters = []): string { @@ -174,11 +173,10 @@ public function renderAsString(string $view, array $parameters = []): string * * @psalm-param array $parameters * - * @return string The rendering result. * @throws Throwable If an error occurred during rendering. * @throws ViewNotFoundException If the view file does not exist. - * * @throws RuntimeException If the view cannot be resolved. + * @return string The rendering result. */ public function renderPartialAsString(string $view, array $parameters = []): string { @@ -290,11 +288,10 @@ public function withLocale(string $locale): self * @psalm-param array $injectCommonParameters * @psalm-param array $injectLayoutParameters * - * @return string The rendering result. * @throws RuntimeException If the view cannot be resolved. * @throws Throwable If an error occurred during rendering. * @throws ViewNotFoundException If the view file does not exist. - * + * @return string The rendering result. */ private function renderProxy( string $view, diff --git a/tests/ViewRendererTest.php b/tests/ViewRendererTest.php index a0b1a0c..295aa6f 100644 --- a/tests/ViewRendererTest.php +++ b/tests/ViewRendererTest.php @@ -496,11 +496,11 @@ public function testLayoutSpecificInjections(): void '@views/layout', new TestInjection(), ), - new class() implements MetaTagsInjectionInterface { + new class () implements MetaTagsInjectionInterface { public function getMetaTags(): array { return [ - ['charset' => 'windows-1251'] + ['charset' => 'windows-1251'], ]; } }