@@ -73,19 +73,19 @@ discard block |
||
73 | 73 | $rootDir = rtrim(__DIR__, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR |
74 | 74 | . str_repeat('..' . DIRECTORY_SEPARATOR, 2); |
75 | 75 | |
76 | - $container->offsetSet('root_dir', static function () use ($rootDir) { |
|
76 | + $container->offsetSet('root_dir', static function() use ($rootDir) { |
|
77 | 77 | return $rootDir; |
78 | 78 | }); |
79 | 79 | |
80 | - $container->offsetSet('src_dir', static function () use ($rootDir) { |
|
80 | + $container->offsetSet('src_dir', static function() use ($rootDir) { |
|
81 | 81 | return sprintf('%ssrc%s', $rootDir, DIRECTORY_SEPARATOR); |
82 | 82 | }); |
83 | 83 | |
84 | - $container->offsetSet('resources_dir', static function () use ($rootDir) { |
|
84 | + $container->offsetSet('resources_dir', static function() use ($rootDir) { |
|
85 | 85 | return sprintf('%sresources%s', $rootDir, DIRECTORY_SEPARATOR); |
86 | 86 | }); |
87 | 87 | |
88 | - $container->offsetSet('bin_dir', static function () use ($rootDir) { |
|
88 | + $container->offsetSet('bin_dir', static function() use ($rootDir) { |
|
89 | 89 | return sprintf('%sbin%s', $rootDir, DIRECTORY_SEPARATOR); |
90 | 90 | }); |
91 | 91 | |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | { |
102 | 102 | $self = $this; |
103 | 103 | |
104 | - $container->offsetSet('commands', static function (Container $container) use ($self) { |
|
104 | + $container->offsetSet('commands', static function(Container $container) use ($self) { |
|
105 | 105 | return [ |
106 | 106 | $self->createSplitCommand($container), |
107 | 107 | $self->createSplitAllCommand($container), |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | */ |
143 | 143 | protected function registerSplitter(Container $container): Container |
144 | 144 | { |
145 | - $container->offsetSet('splitter', static function (Container $container) { |
|
145 | + $container->offsetSet('splitter', static function(Container $container) { |
|
146 | 146 | return new Splitter( |
147 | 147 | $container->offsetGet('configuration_loader'), |
148 | 148 | $container->offsetGet('process_pool_factory'), |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | */ |
165 | 165 | protected function registerGit(Container $container): Container |
166 | 166 | { |
167 | - $container->offsetSet('git', static function (Container $container) { |
|
167 | + $container->offsetSet('git', static function(Container $container) { |
|
168 | 168 | return new Git($container->offsetGet('process_factory')); |
169 | 169 | }); |
170 | 170 | |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | */ |
179 | 179 | protected function registerProcessFactory(Container $container): Container |
180 | 180 | { |
181 | - $container->offsetSet('process_factory', static function () { |
|
181 | + $container->offsetSet('process_factory', static function() { |
|
182 | 182 | return new ProcessFactory(); |
183 | 183 | }); |
184 | 184 | |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | */ |
193 | 193 | protected function registerProcessPoolFactory(Container $container): Container |
194 | 194 | { |
195 | - $container->offsetSet('process_pool_factory', static function (Container $container) { |
|
195 | + $container->offsetSet('process_pool_factory', static function(Container $container) { |
|
196 | 196 | return new ProcessPoolFactory( |
197 | 197 | $container->offsetGet('process_factory') |
198 | 198 | ); |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | */ |
209 | 209 | protected function registerResultFactory(Container $container): Container |
210 | 210 | { |
211 | - $container->offsetSet('result_factory', static function () { |
|
211 | + $container->offsetSet('result_factory', static function() { |
|
212 | 212 | return new ResultFactory(); |
213 | 213 | }); |
214 | 214 | |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | */ |
223 | 223 | protected function registerMessageFactory(Container $container): Container |
224 | 224 | { |
225 | - $container->offsetSet('message_factory', static function () { |
|
225 | + $container->offsetSet('message_factory', static function() { |
|
226 | 226 | return new MessageFactory(); |
227 | 227 | }); |
228 | 228 | |
@@ -236,7 +236,7 @@ discard block |
||
236 | 236 | */ |
237 | 237 | protected function registerSplitshLite(Container $container): Container |
238 | 238 | { |
239 | - $container->offsetSet('splitsh_lite', static function (Container $container) { |
|
239 | + $container->offsetSet('splitsh_lite', static function(Container $container) { |
|
240 | 240 | return new SplitshLite( |
241 | 241 | $container->offsetGet('process_factory'), |
242 | 242 | $container->offsetGet('configuration_loader') |
@@ -253,7 +253,7 @@ discard block |
||
253 | 253 | */ |
254 | 254 | protected function registerConfigurationValidator(Container $container): Container |
255 | 255 | { |
256 | - $container->offsetSet('configuration_validator', static function (Container $container) { |
|
256 | + $container->offsetSet('configuration_validator', static function(Container $container) { |
|
257 | 257 | $pathToDandelionSchema = sprintf('%sdandelion.schema.json', $container->offsetGet('resources_dir')); |
258 | 258 | |
259 | 259 | return new ConfigurationValidator( |
@@ -272,7 +272,7 @@ discard block |
||
272 | 272 | */ |
273 | 273 | protected function registerConfigurationLoader(Container $container): Container |
274 | 274 | { |
275 | - $container->offsetSet('configuration_loader', static function (Container $container) { |
|
275 | + $container->offsetSet('configuration_loader', static function(Container $container) { |
|
276 | 276 | return new ConfigurationLoader( |
277 | 277 | $container->offsetGet('configuration_finder'), |
278 | 278 | $container->offsetGet('filesystem'), |
@@ -290,7 +290,7 @@ discard block |
||
290 | 290 | */ |
291 | 291 | protected function registerConfigurationFinder(Container $container): Container |
292 | 292 | { |
293 | - $container->offsetSet('configuration_finder', static function (Container $container) { |
|
293 | + $container->offsetSet('configuration_finder', static function(Container $container) { |
|
294 | 294 | return new ConfigurationFinder( |
295 | 295 | $container->offsetGet('finder'), |
296 | 296 | $container->offsetGet('filesystem') |
@@ -307,7 +307,7 @@ discard block |
||
307 | 307 | */ |
308 | 308 | protected function registerFinder(Container $container): Container |
309 | 309 | { |
310 | - $container->offsetSet('finder', static function () { |
|
310 | + $container->offsetSet('finder', static function() { |
|
311 | 311 | return new Finder(); |
312 | 312 | }); |
313 | 313 | |
@@ -321,7 +321,7 @@ discard block |
||
321 | 321 | */ |
322 | 322 | protected function registerFilesystem(Container $container): Container |
323 | 323 | { |
324 | - $container->offsetSet('filesystem', static function () { |
|
324 | + $container->offsetSet('filesystem', static function() { |
|
325 | 325 | return new Filesystem(); |
326 | 326 | }); |
327 | 327 | |
@@ -335,7 +335,7 @@ discard block |
||
335 | 335 | */ |
336 | 336 | protected function registerSerializer(Container $container): Container |
337 | 337 | { |
338 | - $container->offsetSet('serializer', static function () { |
|
338 | + $container->offsetSet('serializer', static function() { |
|
339 | 339 | $normalizer = [ |
340 | 340 | new ObjectNormalizer(null, null, null, new PhpDocExtractor()), |
341 | 341 | new ArrayDenormalizer() |
@@ -357,7 +357,7 @@ discard block |
||
357 | 357 | */ |
358 | 358 | protected function registerReleaser(Container $container): Container |
359 | 359 | { |
360 | - $container->offsetSet('releaser', static function (Container $container) { |
|
360 | + $container->offsetSet('releaser', static function(Container $container) { |
|
361 | 361 | return new Releaser( |
362 | 362 | $container->offsetGet('configuration_loader'), |
363 | 363 | $container->offsetGet('filesystem'), |
@@ -379,7 +379,7 @@ discard block |
||
379 | 379 | */ |
380 | 380 | protected function registerInitializer(Container $container): Container |
381 | 381 | { |
382 | - $container->offsetSet('initializer', static function (Container $container) { |
|
382 | + $container->offsetSet('initializer', static function(Container $container) { |
|
383 | 383 | return new Initializer( |
384 | 384 | $container->offsetGet('git'), |
385 | 385 | $container->offsetGet('configuration_loader'), |