@@ -72,19 +72,19 @@ discard block |
||
72 | 72 | $rootDir = rtrim(__DIR__, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR |
73 | 73 | . str_repeat('..' . DIRECTORY_SEPARATOR, 2); |
74 | 74 | |
75 | - $container->offsetSet('root_dir', static function () use ($rootDir) { |
|
75 | + $container->offsetSet('root_dir', static function() use ($rootDir) { |
|
76 | 76 | return $rootDir; |
77 | 77 | }); |
78 | 78 | |
79 | - $container->offsetSet('src_dir', static function () use ($rootDir) { |
|
79 | + $container->offsetSet('src_dir', static function() use ($rootDir) { |
|
80 | 80 | return sprintf('%ssrc%s', $rootDir, DIRECTORY_SEPARATOR); |
81 | 81 | }); |
82 | 82 | |
83 | - $container->offsetSet('resources_dir', static function () use ($rootDir) { |
|
83 | + $container->offsetSet('resources_dir', static function() use ($rootDir) { |
|
84 | 84 | return sprintf('%sresources%s', $rootDir, DIRECTORY_SEPARATOR); |
85 | 85 | }); |
86 | 86 | |
87 | - $container->offsetSet('bin_dir', static function () use ($rootDir) { |
|
87 | + $container->offsetSet('bin_dir', static function() use ($rootDir) { |
|
88 | 88 | return sprintf('%sbin%s', $rootDir, DIRECTORY_SEPARATOR); |
89 | 89 | }); |
90 | 90 | |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | { |
101 | 101 | $self = $this; |
102 | 102 | |
103 | - $container->offsetSet('commands', static function (Container $container) use ($self) { |
|
103 | + $container->offsetSet('commands', static function(Container $container) use ($self) { |
|
104 | 104 | return [ |
105 | 105 | $self->createSplitCommand($container), |
106 | 106 | $self->createSplitAllCommand($container), |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | */ |
141 | 141 | protected function registerSplitter(Container $container): Container |
142 | 142 | { |
143 | - $container->offsetSet('splitter', static function (Container $container) { |
|
143 | + $container->offsetSet('splitter', static function(Container $container) { |
|
144 | 144 | return new Splitter( |
145 | 145 | $container->offsetGet('configuration_loader'), |
146 | 146 | $container->offsetGet('process_pool_factory'), |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | */ |
163 | 163 | protected function registerGit(Container $container): Container |
164 | 164 | { |
165 | - $container->offsetSet('git', static function (Container $container) { |
|
165 | + $container->offsetSet('git', static function(Container $container) { |
|
166 | 166 | return new Git($container->offsetGet('process_factory')); |
167 | 167 | }); |
168 | 168 | |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | */ |
177 | 177 | protected function registerProcessFactory(Container $container): Container |
178 | 178 | { |
179 | - $container->offsetSet('process_factory', static function () { |
|
179 | + $container->offsetSet('process_factory', static function() { |
|
180 | 180 | return new ProcessFactory(); |
181 | 181 | }); |
182 | 182 | |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | */ |
191 | 191 | protected function registerProcessPoolFactory(Container $container): Container |
192 | 192 | { |
193 | - $container->offsetSet('process_pool_factory', static function (Container $container) { |
|
193 | + $container->offsetSet('process_pool_factory', static function(Container $container) { |
|
194 | 194 | return new ProcessPoolFactory( |
195 | 195 | $container->offsetGet('process_factory') |
196 | 196 | ); |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | */ |
207 | 207 | protected function registerResultFactory(Container $container): Container |
208 | 208 | { |
209 | - $container->offsetSet('result_factory', static function () { |
|
209 | + $container->offsetSet('result_factory', static function() { |
|
210 | 210 | return new ResultFactory(); |
211 | 211 | }); |
212 | 212 | |
@@ -220,7 +220,7 @@ discard block |
||
220 | 220 | */ |
221 | 221 | protected function registerMessageFactory(Container $container): Container |
222 | 222 | { |
223 | - $container->offsetSet('message_factory', static function () { |
|
223 | + $container->offsetSet('message_factory', static function() { |
|
224 | 224 | return new MessageFactory(); |
225 | 225 | }); |
226 | 226 | |
@@ -234,7 +234,7 @@ discard block |
||
234 | 234 | */ |
235 | 235 | protected function registerSplitshLite(Container $container): Container |
236 | 236 | { |
237 | - $container->offsetSet('splitsh_lite', static function (Container $container) { |
|
237 | + $container->offsetSet('splitsh_lite', static function(Container $container) { |
|
238 | 238 | return new SplitshLite( |
239 | 239 | $container->offsetGet('operating_system'), |
240 | 240 | $container->offsetGet('process_factory'), |
@@ -252,7 +252,7 @@ discard block |
||
252 | 252 | */ |
253 | 253 | protected function registerOperatingSystem(Container $container): Container |
254 | 254 | { |
255 | - $container->offsetSet('operating_system', static function () { |
|
255 | + $container->offsetSet('operating_system', static function() { |
|
256 | 256 | return new OperatingSystem(); |
257 | 257 | }); |
258 | 258 | |
@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | */ |
267 | 267 | protected function registerConfigurationValidator(Container $container): Container |
268 | 268 | { |
269 | - $container->offsetSet('configuration_validator', static function (Container $container) { |
|
269 | + $container->offsetSet('configuration_validator', static function(Container $container) { |
|
270 | 270 | $pathToDandelionSchema = sprintf('%sdandelion.schema.json', $container->offsetGet('resources_dir')); |
271 | 271 | |
272 | 272 | return new ConfigurationValidator( |
@@ -285,7 +285,7 @@ discard block |
||
285 | 285 | */ |
286 | 286 | protected function registerConfigurationLoader(Container $container): Container |
287 | 287 | { |
288 | - $container->offsetSet('configuration_loader', static function (Container $container) { |
|
288 | + $container->offsetSet('configuration_loader', static function(Container $container) { |
|
289 | 289 | return new ConfigurationLoader( |
290 | 290 | $container->offsetGet('configuration_finder'), |
291 | 291 | $container->offsetGet('filesystem'), |
@@ -303,7 +303,7 @@ discard block |
||
303 | 303 | */ |
304 | 304 | protected function registerConfigurationFinder(Container $container): Container |
305 | 305 | { |
306 | - $container->offsetSet('configuration_finder', static function (Container $container) { |
|
306 | + $container->offsetSet('configuration_finder', static function(Container $container) { |
|
307 | 307 | return new ConfigurationFinder( |
308 | 308 | $container->offsetGet('finder'), |
309 | 309 | $container->offsetGet('filesystem') |
@@ -320,7 +320,7 @@ discard block |
||
320 | 320 | */ |
321 | 321 | protected function registerFinder(Container $container): Container |
322 | 322 | { |
323 | - $container->offsetSet('finder', static function () { |
|
323 | + $container->offsetSet('finder', static function() { |
|
324 | 324 | return new Finder(); |
325 | 325 | }); |
326 | 326 | |
@@ -334,7 +334,7 @@ discard block |
||
334 | 334 | */ |
335 | 335 | protected function registerFilesystem(Container $container): Container |
336 | 336 | { |
337 | - $container->offsetSet('filesystem', static function () { |
|
337 | + $container->offsetSet('filesystem', static function() { |
|
338 | 338 | return new Filesystem(); |
339 | 339 | }); |
340 | 340 | |
@@ -348,7 +348,7 @@ discard block |
||
348 | 348 | */ |
349 | 349 | protected function registerSerializer(Container $container): Container |
350 | 350 | { |
351 | - $container->offsetSet('serializer', static function () { |
|
351 | + $container->offsetSet('serializer', static function() { |
|
352 | 352 | $normalizer = [ |
353 | 353 | new ObjectNormalizer(null, null, null, new PhpDocExtractor()), |
354 | 354 | new ArrayDenormalizer() |
@@ -370,7 +370,7 @@ discard block |
||
370 | 370 | */ |
371 | 371 | protected function registerReleaser(Container $container): Container |
372 | 372 | { |
373 | - $container->offsetSet('releaser', static function (Container $container) { |
|
373 | + $container->offsetSet('releaser', static function(Container $container) { |
|
374 | 374 | return new Releaser( |
375 | 375 | $container->offsetGet('configuration_loader'), |
376 | 376 | $container->offsetGet('filesystem'), |
@@ -100,7 +100,7 @@ |
||
100 | 100 | { |
101 | 101 | $messageFactory = $this->messageFactory; |
102 | 102 | |
103 | - return static function (Process $process) use ($result, $messageFactory, $repositoryName) { |
|
103 | + return static function(Process $process) use ($result, $messageFactory, $repositoryName) { |
|
104 | 104 | // @codeCoverageIgnoreStart |
105 | 105 | $type = $process->isSuccessful() ? MessageInterface::TYPE_INFO : MessageInterface::TYPE_ERROR; |
106 | 106 |