@@ -67,19 +67,19 @@ discard block |
||
67 | 67 | $rootDir = rtrim(__DIR__, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR |
68 | 68 | . str_repeat('..' . DIRECTORY_SEPARATOR, 2); |
69 | 69 | |
70 | - $container->offsetSet('root_dir', static function () use ($rootDir) { |
|
70 | + $container->offsetSet('root_dir', static function() use ($rootDir) { |
|
71 | 71 | return $rootDir; |
72 | 72 | }); |
73 | 73 | |
74 | - $container->offsetSet('src_dir', static function () use ($rootDir) { |
|
74 | + $container->offsetSet('src_dir', static function() use ($rootDir) { |
|
75 | 75 | return sprintf('%ssrc%s', $rootDir, DIRECTORY_SEPARATOR); |
76 | 76 | }); |
77 | 77 | |
78 | - $container->offsetSet('resources_dir', static function () use ($rootDir) { |
|
78 | + $container->offsetSet('resources_dir', static function() use ($rootDir) { |
|
79 | 79 | return sprintf('%sresources%s', $rootDir, DIRECTORY_SEPARATOR); |
80 | 80 | }); |
81 | 81 | |
82 | - $container->offsetSet('bin_dir', static function () use ($rootDir) { |
|
82 | + $container->offsetSet('bin_dir', static function() use ($rootDir) { |
|
83 | 83 | return sprintf('%sbin%s', $rootDir, DIRECTORY_SEPARATOR); |
84 | 84 | }); |
85 | 85 | |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | { |
96 | 96 | $self = $this; |
97 | 97 | |
98 | - $container->offsetSet('commands', static function (Container $container) use ($self) { |
|
98 | + $container->offsetSet('commands', static function(Container $container) use ($self) { |
|
99 | 99 | return [ |
100 | 100 | $self->createSplitCommand($container), |
101 | 101 | $self->createSplitAllCommand($container), |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | */ |
136 | 136 | protected function registerSplitter(Container $container): Container |
137 | 137 | { |
138 | - $container->offsetSet('splitter', static function (Container $container) { |
|
138 | + $container->offsetSet('splitter', static function(Container $container) { |
|
139 | 139 | return new Splitter( |
140 | 140 | $container->offsetGet('configuration_loader'), |
141 | 141 | $container->offsetGet('process_factory'), |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | */ |
156 | 156 | protected function registerGit(Container $container): Container |
157 | 157 | { |
158 | - $container->offsetSet('git', static function (Container $container) { |
|
158 | + $container->offsetSet('git', static function(Container $container) { |
|
159 | 159 | return new Git($container->offsetGet('process_factory')); |
160 | 160 | }); |
161 | 161 | |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | */ |
170 | 170 | protected function registerProcessFactory(Container $container): Container |
171 | 171 | { |
172 | - $container->offsetSet('process_factory', static function () { |
|
172 | + $container->offsetSet('process_factory', static function() { |
|
173 | 173 | return new ProcessFactory(); |
174 | 174 | }); |
175 | 175 | |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | */ |
184 | 184 | protected function registerSplitshLite(Container $container): Container |
185 | 185 | { |
186 | - $container->offsetSet('splitsh_lite', static function (Container $container) { |
|
186 | + $container->offsetSet('splitsh_lite', static function(Container $container) { |
|
187 | 187 | return new SplitshLite( |
188 | 188 | $container->offsetGet('operating_system'), |
189 | 189 | $container->offsetGet('process_factory'), |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | */ |
202 | 202 | protected function registerOperatingSystem(Container $container): Container |
203 | 203 | { |
204 | - $container->offsetSet('operating_system', static function () { |
|
204 | + $container->offsetSet('operating_system', static function() { |
|
205 | 205 | return new OperatingSystem(); |
206 | 206 | }); |
207 | 207 | |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | */ |
216 | 216 | protected function registerConfigurationValidator(Container $container): Container |
217 | 217 | { |
218 | - $container->offsetSet('configuration_validator', static function (Container $container) { |
|
218 | + $container->offsetSet('configuration_validator', static function(Container $container) { |
|
219 | 219 | $pathToDandelionSchema = sprintf('%sdandelion.schema.json', $container->offsetGet('resources_dir')); |
220 | 220 | |
221 | 221 | return new ConfigurationValidator( |
@@ -234,7 +234,7 @@ discard block |
||
234 | 234 | */ |
235 | 235 | protected function registerConfigurationLoader(Container $container): Container |
236 | 236 | { |
237 | - $container->offsetSet('configuration_loader', static function (Container $container) { |
|
237 | + $container->offsetSet('configuration_loader', static function(Container $container) { |
|
238 | 238 | return new ConfigurationLoader( |
239 | 239 | $container->offsetGet('configuration_finder'), |
240 | 240 | $container->offsetGet('filesystem'), |
@@ -252,7 +252,7 @@ discard block |
||
252 | 252 | */ |
253 | 253 | protected function registerConfigurationFinder(Container $container): Container |
254 | 254 | { |
255 | - $container->offsetSet('configuration_finder', static function (Container $container) { |
|
255 | + $container->offsetSet('configuration_finder', static function(Container $container) { |
|
256 | 256 | return new ConfigurationFinder( |
257 | 257 | $container->offsetGet('finder'), |
258 | 258 | $container->offsetGet('filesystem') |
@@ -269,7 +269,7 @@ discard block |
||
269 | 269 | */ |
270 | 270 | protected function registerFinder(Container $container): Container |
271 | 271 | { |
272 | - $container->offsetSet('finder', static function () { |
|
272 | + $container->offsetSet('finder', static function() { |
|
273 | 273 | return new Finder(); |
274 | 274 | }); |
275 | 275 | |
@@ -283,7 +283,7 @@ discard block |
||
283 | 283 | */ |
284 | 284 | protected function registerFilesystem(Container $container): Container |
285 | 285 | { |
286 | - $container->offsetSet('filesystem', static function () { |
|
286 | + $container->offsetSet('filesystem', static function() { |
|
287 | 287 | return new Filesystem(); |
288 | 288 | }); |
289 | 289 | |
@@ -297,7 +297,7 @@ discard block |
||
297 | 297 | */ |
298 | 298 | protected function registerSerializer(Container $container): Container |
299 | 299 | { |
300 | - $container->offsetSet('serializer', static function () { |
|
300 | + $container->offsetSet('serializer', static function() { |
|
301 | 301 | $normalizer = [ |
302 | 302 | new ObjectNormalizer(null, null, null, new PhpDocExtractor()), |
303 | 303 | new ArrayDenormalizer() |
@@ -319,7 +319,7 @@ discard block |
||
319 | 319 | */ |
320 | 320 | protected function registerReleaser(Container $container): Container |
321 | 321 | { |
322 | - $container->offsetSet('releaser', static function (Container $container) { |
|
322 | + $container->offsetSet('releaser', static function(Container $container) { |
|
323 | 323 | return new Releaser( |
324 | 324 | $container->offsetGet('configuration_loader'), |
325 | 325 | $container->offsetGet('filesystem'), |