Skip to content

Commit 03f3324

Browse files
committed
Changed to multiline in subsribedEvents
1 parent ffe81fe commit 03f3324

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

src/Name/Generator/CommandNameGenerator.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,17 @@ public function add(string $regexp, NameGeneratorInterface $generator): CommandN
2727

2828
public static function getSubscribedEvents(): array
2929
{
30-
return [ConsoleCommandEvent::class => ['onCommand', 30], ConsoleTerminateEvent::class => ['onTerminate'],];
30+
return [
31+
ConsoleCommandEvent::class => ['onCommand', 30],
32+
ConsoleTerminateEvent::class => ['onTerminate'],
33+
];
3134
}
3235

3336
public function onCommand(ConsoleCommandEvent $event): void
3437
{
3538
if (null === $event->getCommand()) {
3639
return;
3740
}
38-
3941
$this->name = (string)$event->getCommand()->getName();
4042
}
4143

src/Name/Generator/ControllerNameGenerator.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ class ControllerNameGenerator implements NameGeneratorInterface, EventSubscriber
1313

1414
public static function getSubscribedEvents(): array
1515
{
16-
return [RequestEvent::class => ['onRequest', 30], TerminateEvent::class => ['onTerminate', -16384],];
16+
return [
17+
RequestEvent::class => ['onRequest', 30],
18+
TerminateEvent::class => ['onTerminate', -16384],
19+
];
1720
}
1821

1922
public function onRequest(RequestEvent $event): void

src/Name/Generator/RequestNameGenerator.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ public function add(string $regexp, NameGeneratorInterface $generator): RequestN
2727

2828
public static function getSubscribedEvents(): array
2929
{
30-
return [RequestEvent::class => ['onRequest', 30], TerminateEvent::class => ['onTerminate', -16384],];
30+
return [
31+
RequestEvent::class => ['onRequest', 30],
32+
TerminateEvent::class => ['onTerminate', -16384],
33+
];
3134
}
3235

3336
public function onRequest(RequestEvent $event): void

0 commit comments

Comments
 (0)