Skip to content

Commit

Permalink
php-cs-fixer it up
Browse files Browse the repository at this point in the history
  • Loading branch information
jrushlow committed Jul 12, 2022
1 parent 54f3891 commit 37aec4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Maker/MakeSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Question\Question;
use Symfony\Component\HttpKernel\KernelEvents;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\HttpKernel\KernelEvents;

/**
* @author Javier Eguiluz <javier.eguiluz@gmail.com>
Expand Down Expand Up @@ -101,7 +101,7 @@ public function generate(InputInterface $input, ConsoleStyle $io, Generator $gen
'event/Subscriber.tpl.php',
[
'use_statements' => $useStatements,
'event' => class_exists($event) ? sprintf('%s::class', $eventClassName) : $this->getEventConstant($event),
'event' => class_exists($event) ? sprintf('%s::class', $eventClassName) : $this->getEventConstant($event),
'event_arg' => $eventClassName ? sprintf('%s $event', $eventClassName) : '$event',
'method_name' => class_exists($event) ? Str::asEventMethod($eventClassName) : Str::asEventMethod($event),
]
Expand Down

0 comments on commit 37aec4e

Please sign in to comment.