Skip to content

Commit 9a397e6

Browse files
bdalerjrushlow
authored andcommitted
Style fix.
1 parent 0341a50 commit 9a397e6

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/Maker/MakeSubscriber.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,15 +121,14 @@ public function configureDependencies(DependencyBuilder $dependencies): void
121121

122122
/**
123123
* @param $event
124-
* @return string
125124
*/
126125
private function getEventConstant($event): string
127126
{
128127
$constants = $this->getKernelEventsConstants();
129128

130129
foreach ($constants as $name => $value) {
131130
if ($value === $event) {
132-
return 'KernelEvents::' . $name;
131+
return 'KernelEvents::'.$name;
133132
}
134133
}
135134

@@ -138,7 +137,6 @@ private function getEventConstant($event): string
138137

139138
/**
140139
* @param $event
141-
* @return bool
142140
*/
143141
private function isNeedImportConstantsClass($event): bool
144142
{
@@ -153,12 +151,10 @@ private function isNeedImportConstantsClass($event): bool
153151
return false;
154152
}
155153

156-
/**
157-
* @return array
158-
*/
159154
private function getKernelEventsConstants(): array
160155
{
161156
$class = new \ReflectionClass(KernelEvents::class);
157+
162158
return $class->getConstants();
163159
}
164160
}

0 commit comments

Comments
 (0)