File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments