Skip to content

Commit e4519af

Browse files
committed
fix cs
1 parent e2f3d07 commit e4519af

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/TwigComponent/src/ComponentRenderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function render(object $component): string
3232
{
3333
// TODO: Self-Rendering components?
3434
if (!$attribute = TwigComponent::forClass($component::class)) {
35-
throw new \InvalidArgumentException(\sprintf('"%s" is not a Twig Component, did you forget to add the TwigComponent attribute?', $component::class));
35+
throw new \InvalidArgumentException(sprintf('"%s" is not a Twig Component, did you forget to add the TwigComponent attribute?', $component::class));
3636
}
3737

3838
return $this->twig->render($attribute->getTemplate(), ['this' => $component]);

src/TwigComponent/src/DependencyInjection/Compiler/TwigComponentPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function process(ContainerBuilder $container): void
3131
foreach ($container->getDefinitions() as $id => $definition) {
3232
$class = $definition->getClass();
3333

34-
if (!\class_exists($class) || !$attribute = TwigComponent::forClass($class)) {
34+
if (!class_exists($class) || !$attribute = TwigComponent::forClass($class)) {
3535
continue;
3636
}
3737

0 commit comments

Comments
 (0)