Code Duplication    Length = 3-3 lines in 2 locations

src/Eccube/Service/PluginService.php 2 locations

@@ 864-866 (lines=3) @@
861
        if (isset($json['require'])) {
862
            $require = $json['require'];
863
            switch ($libraryType) {
864
                case self::ECCUBE_LIBRARY:
865
                    $dependents = array_intersect_key($require, array_flip(preg_grep('/^'.self::VENDOR_NAME.'\//i', array_keys($require))));
866
                    break;
867
868
                case self::OTHER_LIBRARY:
869
                    $dependents = array_intersect_key($require, array_flip(preg_grep('/^'.self::VENDOR_NAME.'\//i', array_keys($require), PREG_GREP_INVERT)));
@@ 868-870 (lines=3) @@
865
                    $dependents = array_intersect_key($require, array_flip(preg_grep('/^'.self::VENDOR_NAME.'\//i', array_keys($require))));
866
                    break;
867
868
                case self::OTHER_LIBRARY:
869
                    $dependents = array_intersect_key($require, array_flip(preg_grep('/^'.self::VENDOR_NAME.'\//i', array_keys($require), PREG_GREP_INVERT)));
870
                    break;
871
872
                default:
873
                    $dependents = $json['require'];