Code Duplication    Length = 3-3 lines in 2 locations

src/Eccube/Service/PluginService.php 2 locations

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