Code Duplication    Length = 3-3 lines in 2 locations

src/Eccube/Service/PluginService.php 2 locations

@@ 810-812 (lines=3) @@
807
        if (isset($json['require'])) {
808
            $require = $json['require'];
809
            switch ($libraryType) {
810
                case self::ECCUBE_LIBRARY:
811
                    $dependents = array_intersect_key($require, array_flip(preg_grep('/^'.self::VENDOR_NAME.'\//i', array_keys($require))));
812
                    break;
813
814
                case self::OTHER_LIBRARY:
815
                    $dependents = array_intersect_key($require, array_flip(preg_grep('/^'.self::VENDOR_NAME.'\//i', array_keys($require), PREG_GREP_INVERT)));
@@ 814-816 (lines=3) @@
811
                    $dependents = array_intersect_key($require, array_flip(preg_grep('/^'.self::VENDOR_NAME.'\//i', array_keys($require))));
812
                    break;
813
814
                case self::OTHER_LIBRARY:
815
                    $dependents = array_intersect_key($require, array_flip(preg_grep('/^'.self::VENDOR_NAME.'\//i', array_keys($require), PREG_GREP_INVERT)));
816
                    break;
817
818
                default:
819
                    $dependents = $json['require'];