Skip to content

Commit 2c7e330

Browse files
committed
Fix CS
1 parent 2417af1 commit 2c7e330

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/LiveComponent/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# CHANGELOG
22

33
- Add `submitForm()` to `TestLiveComponent`.
4-
- Add `live_action` twig function
4+
- Add `live_action` Twig function
55

66
## 2.18.0
77

src/LiveComponent/src/Twig/LiveComponentRuntime.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@
1616
use Symfony\UX\LiveComponent\Metadata\LiveComponentMetadataFactory;
1717
use Symfony\UX\StimulusBundle\Helper\StimulusHelper;
1818
use Symfony\UX\TwigComponent\ComponentFactory;
19-
use function array_pop;
20-
use function array_unshift;
21-
use function explode;
22-
use function implode;
2319

2420
/**
2521
* @author Kevin Bond <kevinbond@gmail.com>
@@ -68,7 +64,7 @@ public function liveAction(string $actionName, array $parameters = [], array $mo
6864

6965
$name = 'action';
7066

71-
if (count($parts) > 0) {
67+
if (\count($parts) > 0) {
7268
$name .= ':'.implode(':', $parts);
7369
}
7470

0 commit comments

Comments
 (0)