@@ -74,11 +74,11 @@ |
||
74 | 74 | */ |
75 | 75 | private function classNameFromParameters(array $parameters) |
76 | 76 | { |
77 | - $strings = array_map(function (\ReflectionParameter $parameter) { |
|
77 | + $strings = array_map(function(\ReflectionParameter $parameter) { |
|
78 | 78 | return $this->classNameFromParameter($parameter); |
79 | 79 | }, $parameters); |
80 | 80 | |
81 | - return array_filter($strings, function ($s) { |
|
81 | + return array_filter($strings, function($s) { |
|
82 | 82 | return !!$s; |
83 | 83 | }); |
84 | 84 | } |
@@ -52,7 +52,7 @@ |
||
52 | 52 | */ |
53 | 53 | private function addClassToEvents(array $eventListenerMethods) |
54 | 54 | { |
55 | - return array_map(function (ListenerMethod $listener) { |
|
55 | + return array_map(function(ListenerMethod $listener) { |
|
56 | 56 | return $this->spaces(self::SPACES_AT_HANDLERS) . '[' . $this->prependSlash($listener->getEventClassName()) . '::class' . ', \'' . $listener->getMethodName() . '\'],'; |
57 | 57 | }, $eventListenerMethods); |
58 | 58 | } |
@@ -52,7 +52,7 @@ |
||
52 | 52 | */ |
53 | 53 | private function addClassToListeners(array $listeners) |
54 | 54 | { |
55 | - return array_map(function (ListenerMethod $listener) { |
|
55 | + return array_map(function(ListenerMethod $listener) { |
|
56 | 56 | return $this->spaces(self::SPACES_AT_HANDLERS) . '[' . $this->prependSlash($listener->getClassName()) . '::class' . ', \'' . $listener->getMethodName() . '\'],'; |
57 | 57 | }, $listeners); |
58 | 58 | } |
@@ -108,7 +108,7 @@ |
||
108 | 108 | |
109 | 109 | protected function filterFiles(array $files) |
110 | 110 | { |
111 | - return array_filter($files, function ($file) { |
|
111 | + return array_filter($files, function($file) { |
|
112 | 112 | return $this->isListenerFileName($file); |
113 | 113 | }); |
114 | 114 | } |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | */ |
117 | 117 | private function sortListeners($listeners) |
118 | 118 | { |
119 | - usort($listeners, function (ListenerMethod $a, ListenerMethod $b) { |
|
119 | + usort($listeners, function(ListenerMethod $a, ListenerMethod $b) { |
|
120 | 120 | return $this->classSorter->__invoke($a->getClass(), $b->getClass()); |
121 | 121 | }); |
122 | 122 | |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | |
139 | 139 | protected function filterFiles(array $files) |
140 | 140 | { |
141 | - return array_filter($files, function ($file) { |
|
141 | + return array_filter($files, function($file) { |
|
142 | 142 | return $this->isListenerFileName($file); |
143 | 143 | }); |
144 | 144 | } |