Code Duplication    Length = 7-7 lines in 2 locations

src/PuliPluginImpl.php 2 locations

@@ 526-532 (lines=7) @@
523
            }
524
        }
525
        switch ($key) {
526
            case 'factory.in.file':
527
                if (empty($config) || empty($config['config']['factory']['in']['file'])) {
528
                    $value = '.puli/GeneratedPuliFactory';
529
                } else {
530
                    $value = $config['config']['factory']['in']['file'];
531
                }
532
                break;
533
            case 'factory.in.class':
534
                if (empty($config) || empty($config['config']['factory']['in']['class'])) {
535
                    $value = 'Puli\\GeneratedPuliFactory';
@@ 533-539 (lines=7) @@
530
                    $value = $config['config']['factory']['in']['file'];
531
                }
532
                break;
533
            case 'factory.in.class':
534
                if (empty($config) || empty($config['config']['factory']['in']['class'])) {
535
                    $value = 'Puli\\GeneratedPuliFactory';
536
                } else {
537
                    $value = $config['config']['factory']['in']['class'];
538
                }
539
                break;
540
            default:
541
                throw new \RuntimeException(sprintf('Cannot extract key "%s" from config!', $key));
542
        }