@@ -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 | |
@@ -74,11 +74,11 @@ discard block |
||
| 74 | 74 | $rootDir = rtrim(__DIR__, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR |
| 75 | 75 | . str_repeat('..' . DIRECTORY_SEPARATOR, 2); |
| 76 | 76 | |
| 77 | - $container->offsetSet('root_dir', static function () use ($rootDir) { |
|
| 77 | + $container->offsetSet('root_dir', static function() use ($rootDir) { |
|
| 78 | 78 | return $rootDir; |
| 79 | 79 | }); |
| 80 | 80 | |
| 81 | - $container->offsetSet('resources_dir', static function () use ($rootDir) { |
|
| 81 | + $container->offsetSet('resources_dir', static function() use ($rootDir) { |
|
| 82 | 82 | return sprintf('%sresources%s', $rootDir, DIRECTORY_SEPARATOR); |
| 83 | 83 | }); |
| 84 | 84 | |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | { |
| 95 | 95 | $self = $this; |
| 96 | 96 | |
| 97 | - $container->offsetSet('commands', static function (Container $container) use ($self) { |
|
| 97 | + $container->offsetSet('commands', static function(Container $container) use ($self) { |
|
| 98 | 98 | return [ |
| 99 | 99 | $self->createSplitCommand($container), |
| 100 | 100 | $self->createSplitAllCommand($container), |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | */ |
| 135 | 135 | protected function registerSplitter(Container $container): Container |
| 136 | 136 | { |
| 137 | - $container->offsetSet('splitter', static function (Container $container) { |
|
| 137 | + $container->offsetSet('splitter', static function(Container $container) { |
|
| 138 | 138 | return new Splitter( |
| 139 | 139 | $container->offsetGet('configuration_loader'), |
| 140 | 140 | $container->offsetGet('process_pool_factory'), |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | */ |
| 157 | 157 | protected function registerGit(Container $container): Container |
| 158 | 158 | { |
| 159 | - $container->offsetSet('git', static function (Container $container) { |
|
| 159 | + $container->offsetSet('git', static function(Container $container) { |
|
| 160 | 160 | return new Git($container->offsetGet('process_factory')); |
| 161 | 161 | }); |
| 162 | 162 | |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | */ |
| 170 | 170 | protected function registerLockStore(Container $container): Container |
| 171 | 171 | { |
| 172 | - $container->offsetSet('lock_store', static function () { |
|
| 172 | + $container->offsetSet('lock_store', static function() { |
|
| 173 | 173 | return new SemaphoreStore(); |
| 174 | 174 | }); |
| 175 | 175 | |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | */ |
| 183 | 183 | protected function registerLockFactory(Container $container): Container |
| 184 | 184 | { |
| 185 | - $container->offsetSet('lock_factory', static function (Container $container) { |
|
| 185 | + $container->offsetSet('lock_factory', static function(Container $container) { |
|
| 186 | 186 | return new LockFactory( |
| 187 | 187 | $container->offsetGet('lock_store') |
| 188 | 188 | ); |
@@ -198,7 +198,7 @@ discard block |
||
| 198 | 198 | */ |
| 199 | 199 | protected function registerProcessFactory(Container $container): Container |
| 200 | 200 | { |
| 201 | - $container->offsetSet('process_factory', static function () { |
|
| 201 | + $container->offsetSet('process_factory', static function() { |
|
| 202 | 202 | return new ProcessFactory(); |
| 203 | 203 | }); |
| 204 | 204 | |
@@ -212,7 +212,7 @@ discard block |
||
| 212 | 212 | */ |
| 213 | 213 | protected function registerProcessPoolFactory(Container $container): Container |
| 214 | 214 | { |
| 215 | - $container->offsetSet('process_pool_factory', static function (Container $container) { |
|
| 215 | + $container->offsetSet('process_pool_factory', static function(Container $container) { |
|
| 216 | 216 | return new ProcessPoolFactory( |
| 217 | 217 | $container->offsetGet('process_factory') |
| 218 | 218 | ); |
@@ -228,7 +228,7 @@ discard block |
||
| 228 | 228 | */ |
| 229 | 229 | protected function registerResultFactory(Container $container): Container |
| 230 | 230 | { |
| 231 | - $container->offsetSet('result_factory', static function () { |
|
| 231 | + $container->offsetSet('result_factory', static function() { |
|
| 232 | 232 | return new ResultFactory(); |
| 233 | 233 | }); |
| 234 | 234 | |
@@ -242,7 +242,7 @@ discard block |
||
| 242 | 242 | */ |
| 243 | 243 | protected function registerMessageFactory(Container $container): Container |
| 244 | 244 | { |
| 245 | - $container->offsetSet('message_factory', static function () { |
|
| 245 | + $container->offsetSet('message_factory', static function() { |
|
| 246 | 246 | return new MessageFactory(); |
| 247 | 247 | }); |
| 248 | 248 | |
@@ -256,7 +256,7 @@ discard block |
||
| 256 | 256 | */ |
| 257 | 257 | protected function registerSplitshLite(Container $container): Container |
| 258 | 258 | { |
| 259 | - $container->offsetSet('splitsh_lite', static function (Container $container) { |
|
| 259 | + $container->offsetSet('splitsh_lite', static function(Container $container) { |
|
| 260 | 260 | return new SplitshLite( |
| 261 | 261 | $container->offsetGet('process_factory'), |
| 262 | 262 | $container->offsetGet('configuration_loader') |
@@ -273,7 +273,7 @@ discard block |
||
| 273 | 273 | */ |
| 274 | 274 | protected function registerConfigurationValidator(Container $container): Container |
| 275 | 275 | { |
| 276 | - $container->offsetSet('configuration_validator', static function (Container $container) { |
|
| 276 | + $container->offsetSet('configuration_validator', static function(Container $container) { |
|
| 277 | 277 | $pathToDandelionSchema = sprintf('%sdandelion.schema.json', $container->offsetGet('resources_dir')); |
| 278 | 278 | |
| 279 | 279 | return new ConfigurationValidator( |
@@ -292,7 +292,7 @@ discard block |
||
| 292 | 292 | */ |
| 293 | 293 | protected function registerConfigurationLoader(Container $container): Container |
| 294 | 294 | { |
| 295 | - $container->offsetSet('configuration_loader', static function (Container $container) { |
|
| 295 | + $container->offsetSet('configuration_loader', static function(Container $container) { |
|
| 296 | 296 | return new ConfigurationLoader( |
| 297 | 297 | $container->offsetGet('configuration_finder'), |
| 298 | 298 | $container->offsetGet('filesystem'), |
@@ -310,7 +310,7 @@ discard block |
||
| 310 | 310 | */ |
| 311 | 311 | protected function registerConfigurationFinder(Container $container): Container |
| 312 | 312 | { |
| 313 | - $container->offsetSet('configuration_finder', static function (Container $container) { |
|
| 313 | + $container->offsetSet('configuration_finder', static function(Container $container) { |
|
| 314 | 314 | return new ConfigurationFinder( |
| 315 | 315 | $container->offsetGet('finder'), |
| 316 | 316 | $container->offsetGet('filesystem') |
@@ -327,7 +327,7 @@ discard block |
||
| 327 | 327 | */ |
| 328 | 328 | protected function registerFinder(Container $container): Container |
| 329 | 329 | { |
| 330 | - $container->offsetSet('finder', static function () { |
|
| 330 | + $container->offsetSet('finder', static function() { |
|
| 331 | 331 | return new Finder(); |
| 332 | 332 | }); |
| 333 | 333 | |
@@ -341,7 +341,7 @@ discard block |
||
| 341 | 341 | */ |
| 342 | 342 | protected function registerFilesystem(Container $container): Container |
| 343 | 343 | { |
| 344 | - $container->offsetSet('filesystem', static function () { |
|
| 344 | + $container->offsetSet('filesystem', static function() { |
|
| 345 | 345 | return new Filesystem(); |
| 346 | 346 | }); |
| 347 | 347 | |
@@ -355,7 +355,7 @@ discard block |
||
| 355 | 355 | */ |
| 356 | 356 | protected function registerSerializer(Container $container): Container |
| 357 | 357 | { |
| 358 | - $container->offsetSet('serializer', static function () { |
|
| 358 | + $container->offsetSet('serializer', static function() { |
|
| 359 | 359 | $normalizer = [ |
| 360 | 360 | new ObjectNormalizer(null, null, null, new PhpDocExtractor()), |
| 361 | 361 | new ArrayDenormalizer() |
@@ -377,7 +377,7 @@ discard block |
||
| 377 | 377 | */ |
| 378 | 378 | protected function registerReleaser(Container $container): Container |
| 379 | 379 | { |
| 380 | - $container->offsetSet('releaser', static function (Container $container) { |
|
| 380 | + $container->offsetSet('releaser', static function(Container $container) { |
|
| 381 | 381 | return new Releaser( |
| 382 | 382 | $container->offsetGet('configuration_loader'), |
| 383 | 383 | $container->offsetGet('filesystem'), |