Code Duplication    Length = 3-3 lines in 2 locations

src/Eccube/Service/PluginService.php 2 locations

@@ 828-830 (lines=3) @@
825
        if (isset($json['require'])) {
826
            $require = $json['require'];
827
            switch ($libraryType) {
828
                case self::ECCUBE_LIBRARY:
829
                    $dependents = array_intersect_key($require, array_flip(preg_grep('/^'.self::VENDOR_NAME.'\//i', array_keys($require))));
830
                    break;
831
832
                case self::OTHER_LIBRARY:
833
                    $dependents = array_intersect_key($require, array_flip(preg_grep('/^'.self::VENDOR_NAME.'\//i', array_keys($require), PREG_GREP_INVERT)));
@@ 832-834 (lines=3) @@
829
                    $dependents = array_intersect_key($require, array_flip(preg_grep('/^'.self::VENDOR_NAME.'\//i', array_keys($require))));
830
                    break;
831
832
                case self::OTHER_LIBRARY:
833
                    $dependents = array_intersect_key($require, array_flip(preg_grep('/^'.self::VENDOR_NAME.'\//i', array_keys($require), PREG_GREP_INVERT)));
834
                    break;
835
836
                default:
837
                    $dependents = $json['require'];