Passed
Pull Request — master (#17)
by Daniel
02:54
created
src/Dandelion/Operation/AbstractOperation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Dandelion/DandelionServiceProvider.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -81,11 +81,11 @@  discard block
 block discarded – undo
81 81
         $rootDir = rtrim(__DIR__, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR
82 82
             . str_repeat('..' . DIRECTORY_SEPARATOR, 2);
83 83
 
84
-        $container->offsetSet('root_dir', static function () use ($rootDir) {
84
+        $container->offsetSet('root_dir', static function() use ($rootDir) {
85 85
             return $rootDir;
86 86
         });
87 87
 
88
-        $container->offsetSet('resources_dir', static function () use ($rootDir) {
88
+        $container->offsetSet('resources_dir', static function() use ($rootDir) {
89 89
             return sprintf('%sresources%s', $rootDir, DIRECTORY_SEPARATOR);
90 90
         });
91 91
 
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
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->createSplitRepositoryInitCommand($container),
107 107
                 $self->createSplitRepositoryInitAllCommand($container),
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
      */
164 164
     protected function registerSplitRepositoryInitializer(Container $container): Container
165 165
     {
166
-        $container->offsetSet('split_repository_initializer', static function (Container $container) {
166
+        $container->offsetSet('split_repository_initializer', static function(Container $container) {
167 167
             return new SplitRepositoryInitializer(
168 168
                 $container->offsetGet('configuration_loader'),
169 169
                 $container->offsetGet('process_pool_factory'),
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
      */
184 184
     protected function registerSplitter(Container $container): Container
185 185
     {
186
-        $container->offsetSet('splitter', static function (Container $container) {
186
+        $container->offsetSet('splitter', static function(Container $container) {
187 187
             return new Splitter(
188 188
                 $container->offsetGet('configuration_loader'),
189 189
                 $container->offsetGet('process_pool_factory'),
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
      */
207 207
     protected function registerGit(Container $container): Container
208 208
     {
209
-        $container->offsetSet('git', static function (Container $container) {
209
+        $container->offsetSet('git', static function(Container $container) {
210 210
             return new Git($container->offsetGet('process_factory'));
211 211
         });
212 212
 
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
      */
220 220
     protected function registerLockStore(Container $container): Container
221 221
     {
222
-        $container->offsetSet('lock_store', static function () {
222
+        $container->offsetSet('lock_store', static function() {
223 223
             return new SemaphoreStore();
224 224
         });
225 225
 
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
      */
233 233
     protected function registerLockFactory(Container $container): Container
234 234
     {
235
-        $container->offsetSet('lock_factory', static function (Container $container) {
235
+        $container->offsetSet('lock_factory', static function(Container $container) {
236 236
             return new LockFactory(
237 237
                 $container->offsetGet('lock_store')
238 238
             );
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
      */
249 249
     protected function registerProcessFactory(Container $container): Container
250 250
     {
251
-        $container->offsetSet('process_factory', static function () {
251
+        $container->offsetSet('process_factory', static function() {
252 252
             return new ProcessFactory();
253 253
         });
254 254
 
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
      */
263 263
     protected function registerProcessPoolFactory(Container $container): Container
264 264
     {
265
-        $container->offsetSet('process_pool_factory', static function (Container $container) {
265
+        $container->offsetSet('process_pool_factory', static function(Container $container) {
266 266
             return new ProcessPoolFactory(
267 267
                 $container->offsetGet('process_factory')
268 268
             );
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
      */
279 279
     protected function registerResultFactory(Container $container): Container
280 280
     {
281
-        $container->offsetSet('result_factory', static function () {
281
+        $container->offsetSet('result_factory', static function() {
282 282
             return new ResultFactory();
283 283
         });
284 284
 
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
      */
293 293
     protected function registerMessageFactory(Container $container): Container
294 294
     {
295
-        $container->offsetSet('message_factory', static function () {
295
+        $container->offsetSet('message_factory', static function() {
296 296
             return new MessageFactory();
297 297
         });
298 298
 
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
      */
307 307
     protected function registerPlatformFactory(Container $container): Container
308 308
     {
309
-        $container->offsetSet('platform_factory', static function () {
309
+        $container->offsetSet('platform_factory', static function() {
310 310
             return new GithubFactory(
311 311
                 new Client()
312 312
             );
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
      */
323 323
     protected function registerSplitshLite(Container $container): Container
324 324
     {
325
-        $container->offsetSet('splitsh_lite', static function (Container $container) {
325
+        $container->offsetSet('splitsh_lite', static function(Container $container) {
326 326
             return new SplitshLite(
327 327
                 $container->offsetGet('process_factory'),
328 328
                 $container->offsetGet('configuration_loader')
@@ -339,7 +339,7 @@  discard block
 block discarded – undo
339 339
      */
340 340
     protected function registerConfigurationValidator(Container $container): Container
341 341
     {
342
-        $container->offsetSet('configuration_validator', static function (Container $container) {
342
+        $container->offsetSet('configuration_validator', static function(Container $container) {
343 343
             $pathToDandelionSchema = sprintf('%sdandelion.schema.json', $container->offsetGet('resources_dir'));
344 344
 
345 345
             return new ConfigurationValidator(
@@ -358,7 +358,7 @@  discard block
 block discarded – undo
358 358
      */
359 359
     protected function registerConfigurationLoader(Container $container): Container
360 360
     {
361
-        $container->offsetSet('configuration_loader', static function (Container $container) {
361
+        $container->offsetSet('configuration_loader', static function(Container $container) {
362 362
             return new ConfigurationLoader(
363 363
                 $container->offsetGet('configuration_finder'),
364 364
                 $container->offsetGet('filesystem'),
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
      */
377 377
     protected function registerConfigurationFinder(Container $container): Container
378 378
     {
379
-        $container->offsetSet('configuration_finder', static function (Container $container) {
379
+        $container->offsetSet('configuration_finder', static function(Container $container) {
380 380
             return new ConfigurationFinder(
381 381
                 $container->offsetGet('finder'),
382 382
                 $container->offsetGet('filesystem')
@@ -393,7 +393,7 @@  discard block
 block discarded – undo
393 393
      */
394 394
     protected function registerFinder(Container $container): Container
395 395
     {
396
-        $container->offsetSet('finder', static function () {
396
+        $container->offsetSet('finder', static function() {
397 397
             return new Finder();
398 398
         });
399 399
 
@@ -407,7 +407,7 @@  discard block
 block discarded – undo
407 407
      */
408 408
     protected function registerFilesystem(Container $container): Container
409 409
     {
410
-        $container->offsetSet('filesystem', static function () {
410
+        $container->offsetSet('filesystem', static function() {
411 411
             return new Filesystem();
412 412
         });
413 413
 
@@ -421,7 +421,7 @@  discard block
 block discarded – undo
421 421
      */
422 422
     protected function registerSerializer(Container $container): Container
423 423
     {
424
-        $container->offsetSet('serializer', static function () {
424
+        $container->offsetSet('serializer', static function() {
425 425
             $normalizer = [
426 426
                 new ObjectNormalizer(null, null, null, new PhpDocExtractor()),
427 427
                 new ArrayDenormalizer()
@@ -443,7 +443,7 @@  discard block
 block discarded – undo
443 443
      */
444 444
     protected function registerReleaser(Container $container): Container
445 445
     {
446
-        $container->offsetSet('releaser', static function (Container $container) {
446
+        $container->offsetSet('releaser', static function(Container $container) {
447 447
             return new Releaser(
448 448
                 $container->offsetGet('configuration_loader'),
449 449
                 $container->offsetGet('filesystem'),
Please login to merge, or discard this patch.