Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Apr 9, 2024
1 parent f6d50f1 commit 2950525
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
9 changes: 3 additions & 6 deletions src/ViewRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,10 @@ public function renderPartial(string $view, array $parameters = []): DataRespons
*
* @psalm-param array<string, mixed> $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
{
Expand All @@ -174,11 +173,10 @@ public function renderAsString(string $view, array $parameters = []): string
*
* @psalm-param array<string, mixed> $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
{
Expand Down Expand Up @@ -290,11 +288,10 @@ public function withLocale(string $locale): self
* @psalm-param array<string, mixed> $injectCommonParameters
* @psalm-param array<string, mixed> $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,
Expand Down
4 changes: 2 additions & 2 deletions tests/ViewRendererTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
];
}
}
Expand Down

0 comments on commit 2950525

Please sign in to comment.