Skip to content

Commit

Permalink
[CS][DX] Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Sylius Bot committed Jun 15, 2024
1 parent 8b4c071 commit 136e86d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function findAnonymousComponentTemplate(string $name): ?string

private function getTemplatePath(string $name, string $prefixName, string $prefixTemplatePath): ?string
{
$templatePath = sprintf('%s/%s.html.twig', $prefixTemplatePath, $this->normalizeName($name, $prefixName));
$templatePath = sprintf('%s/%s.html.twig', $prefixTemplatePath, $this->normalizeName($name, $prefixName));

if ($this->loader->exists($templatePath)) {
return $templatePath;
Expand All @@ -51,6 +51,6 @@ private function getTemplatePath(string $name, string $prefixName, string $prefi

private function normalizeName(string $name, string $prefixName): string
{
return str_replace(':', '/', str_replace($prefixName, '', $name));
return str_replace(':', '/', str_replace($prefixName, '', $name));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function let(ComponentTemplateFinderInterface $decorated, LoaderInterface $loade
[
'sylius_ui' => '@SyliusUi/components',
'sylius_ui_shop' => '@SyliusUi/shop/components',
]
],
);
}

Expand Down

0 comments on commit 136e86d

Please sign in to comment.