@@ -71,19 +71,19 @@ discard block |
||
71 | 71 | $rootDir = rtrim(__DIR__, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR |
72 | 72 | . str_repeat('..' . DIRECTORY_SEPARATOR, 2); |
73 | 73 | |
74 | - $container->offsetSet('root_dir', static function () use ($rootDir) { |
|
74 | + $container->offsetSet('root_dir', static function() use ($rootDir) { |
|
75 | 75 | return $rootDir; |
76 | 76 | }); |
77 | 77 | |
78 | - $container->offsetSet('src_dir', static function () use ($rootDir) { |
|
78 | + $container->offsetSet('src_dir', static function() use ($rootDir) { |
|
79 | 79 | return sprintf('%ssrc%s', $rootDir, DIRECTORY_SEPARATOR); |
80 | 80 | }); |
81 | 81 | |
82 | - $container->offsetSet('resources_dir', static function () use ($rootDir) { |
|
82 | + $container->offsetSet('resources_dir', static function() use ($rootDir) { |
|
83 | 83 | return sprintf('%sresources%s', $rootDir, DIRECTORY_SEPARATOR); |
84 | 84 | }); |
85 | 85 | |
86 | - $container->offsetSet('bin_dir', static function () use ($rootDir) { |
|
86 | + $container->offsetSet('bin_dir', static function() use ($rootDir) { |
|
87 | 87 | return sprintf('%sbin%s', $rootDir, DIRECTORY_SEPARATOR); |
88 | 88 | }); |
89 | 89 | |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | { |
100 | 100 | $self = $this; |
101 | 101 | |
102 | - $container->offsetSet('commands', static function (Container $container) use ($self) { |
|
102 | + $container->offsetSet('commands', static function(Container $container) use ($self) { |
|
103 | 103 | return [ |
104 | 104 | $self->createSplitCommand($container), |
105 | 105 | $self->createSplitAllCommand($container), |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | */ |
140 | 140 | protected function registerSplitter(Container $container): Container |
141 | 141 | { |
142 | - $container->offsetSet('splitter', static function (Container $container) { |
|
142 | + $container->offsetSet('splitter', static function(Container $container) { |
|
143 | 143 | return new Splitter( |
144 | 144 | $container->offsetGet('configuration_loader'), |
145 | 145 | $container->offsetGet('process_pool_factory'), |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | */ |
162 | 162 | protected function registerGit(Container $container): Container |
163 | 163 | { |
164 | - $container->offsetSet('git', static function (Container $container) { |
|
164 | + $container->offsetSet('git', static function(Container $container) { |
|
165 | 165 | return new Git($container->offsetGet('process_factory')); |
166 | 166 | }); |
167 | 167 | |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | */ |
176 | 176 | protected function registerProcessFactory(Container $container): Container |
177 | 177 | { |
178 | - $container->offsetSet('process_factory', static function () { |
|
178 | + $container->offsetSet('process_factory', static function() { |
|
179 | 179 | return new ProcessFactory(); |
180 | 180 | }); |
181 | 181 | |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | */ |
190 | 190 | protected function registerProcessPoolFactory(Container $container): Container |
191 | 191 | { |
192 | - $container->offsetSet('process_pool_factory', static function (Container $container) { |
|
192 | + $container->offsetSet('process_pool_factory', static function(Container $container) { |
|
193 | 193 | return new ProcessPoolFactory( |
194 | 194 | $container->offsetGet('process_factory') |
195 | 195 | ); |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | */ |
206 | 206 | protected function registerResultFactory(Container $container): Container |
207 | 207 | { |
208 | - $container->offsetSet('result_factory', static function () { |
|
208 | + $container->offsetSet('result_factory', static function() { |
|
209 | 209 | return new ResultFactory(); |
210 | 210 | }); |
211 | 211 | |
@@ -219,7 +219,7 @@ discard block |
||
219 | 219 | */ |
220 | 220 | protected function registerMessageFactory(Container $container): Container |
221 | 221 | { |
222 | - $container->offsetSet('message_factory', static function () { |
|
222 | + $container->offsetSet('message_factory', static function() { |
|
223 | 223 | return new MessageFactory(); |
224 | 224 | }); |
225 | 225 | |
@@ -233,7 +233,7 @@ discard block |
||
233 | 233 | */ |
234 | 234 | protected function registerSplitshLite(Container $container): Container |
235 | 235 | { |
236 | - $container->offsetSet('splitsh_lite', static function (Container $container) { |
|
236 | + $container->offsetSet('splitsh_lite', static function(Container $container) { |
|
237 | 237 | return new SplitshLite( |
238 | 238 | $container->offsetGet('process_factory'), |
239 | 239 | $container->offsetGet('configuration_loader') |
@@ -250,7 +250,7 @@ discard block |
||
250 | 250 | */ |
251 | 251 | protected function registerConfigurationValidator(Container $container): Container |
252 | 252 | { |
253 | - $container->offsetSet('configuration_validator', static function (Container $container) { |
|
253 | + $container->offsetSet('configuration_validator', static function(Container $container) { |
|
254 | 254 | $pathToDandelionSchema = sprintf('%sdandelion.schema.json', $container->offsetGet('resources_dir')); |
255 | 255 | |
256 | 256 | return new ConfigurationValidator( |
@@ -269,7 +269,7 @@ discard block |
||
269 | 269 | */ |
270 | 270 | protected function registerConfigurationLoader(Container $container): Container |
271 | 271 | { |
272 | - $container->offsetSet('configuration_loader', static function (Container $container) { |
|
272 | + $container->offsetSet('configuration_loader', static function(Container $container) { |
|
273 | 273 | return new ConfigurationLoader( |
274 | 274 | $container->offsetGet('configuration_finder'), |
275 | 275 | $container->offsetGet('filesystem'), |
@@ -287,7 +287,7 @@ discard block |
||
287 | 287 | */ |
288 | 288 | protected function registerConfigurationFinder(Container $container): Container |
289 | 289 | { |
290 | - $container->offsetSet('configuration_finder', static function (Container $container) { |
|
290 | + $container->offsetSet('configuration_finder', static function(Container $container) { |
|
291 | 291 | return new ConfigurationFinder( |
292 | 292 | $container->offsetGet('finder'), |
293 | 293 | $container->offsetGet('filesystem') |
@@ -304,7 +304,7 @@ discard block |
||
304 | 304 | */ |
305 | 305 | protected function registerFinder(Container $container): Container |
306 | 306 | { |
307 | - $container->offsetSet('finder', static function () { |
|
307 | + $container->offsetSet('finder', static function() { |
|
308 | 308 | return new Finder(); |
309 | 309 | }); |
310 | 310 | |
@@ -318,7 +318,7 @@ discard block |
||
318 | 318 | */ |
319 | 319 | protected function registerFilesystem(Container $container): Container |
320 | 320 | { |
321 | - $container->offsetSet('filesystem', static function () { |
|
321 | + $container->offsetSet('filesystem', static function() { |
|
322 | 322 | return new Filesystem(); |
323 | 323 | }); |
324 | 324 | |
@@ -332,7 +332,7 @@ discard block |
||
332 | 332 | */ |
333 | 333 | protected function registerSerializer(Container $container): Container |
334 | 334 | { |
335 | - $container->offsetSet('serializer', static function () { |
|
335 | + $container->offsetSet('serializer', static function() { |
|
336 | 336 | $normalizer = [ |
337 | 337 | new ObjectNormalizer(null, null, null, new PhpDocExtractor()), |
338 | 338 | new ArrayDenormalizer() |
@@ -354,7 +354,7 @@ discard block |
||
354 | 354 | */ |
355 | 355 | protected function registerReleaser(Container $container): Container |
356 | 356 | { |
357 | - $container->offsetSet('releaser', static function (Container $container) { |
|
357 | + $container->offsetSet('releaser', static function(Container $container) { |
|
358 | 358 | return new Releaser( |
359 | 359 | $container->offsetGet('configuration_loader'), |
360 | 360 | $container->offsetGet('filesystem'), |