Skip to content

Commit bd7b267

Browse files
committed
CS
1 parent 6a8d9aa commit bd7b267

File tree

1 file changed

+2
-2
lines changed
  • ux.symfony.com/src/LiveMemory/Component

1 file changed

+2
-2
lines changed

ux.symfony.com/src/LiveMemory/Component/Icon.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function __construct(
4949
public function mount(string $name): void
5050
{
5151
if (!preg_match('/[A-Za-z0-9-]+/', $name)) {
52-
throw new \InvalidArgumentException(sprintf('Icon name can only contain letters, digits or dashes, "%s" provided.', $this->name));
52+
throw new \InvalidArgumentException(\sprintf('Icon name can only contain letters, digits or dashes, "%s" provided.', $this->name));
5353
}
5454

5555
$this->name = $name;
@@ -66,7 +66,7 @@ public function getRawSvg(): string
6666
{
6767
$path = $this->iconDirectory.'/'.$this->name.'.svg';
6868
if (!file_exists($path)) {
69-
throw new \InvalidArgumentException(sprintf('File "%s" does not exist.', $path));
69+
throw new \InvalidArgumentException(\sprintf('File "%s" does not exist.', $path));
7070
}
7171
$svg = file_get_contents($path);
7272

0 commit comments

Comments
 (0)