Code Duplication    Length = 3-3 lines in 2 locations

src/Eccube/Service/PluginService.php 2 locations

@@ 839-841 (lines=3) @@
836
        if (isset($json['require'])) {
837
            $require = $json['require'];
838
            switch ($libraryType) {
839
                case self::ECCUBE_LIBRARY:
840
                    $dependents = array_intersect_key($require, array_flip(preg_grep('/^'.self::VENDOR_NAME.'\//i', array_keys($require))));
841
                    break;
842
843
                case self::OTHER_LIBRARY:
844
                    $dependents = array_intersect_key($require, array_flip(preg_grep('/^'.self::VENDOR_NAME.'\//i', array_keys($require), PREG_GREP_INVERT)));
@@ 843-845 (lines=3) @@
840
                    $dependents = array_intersect_key($require, array_flip(preg_grep('/^'.self::VENDOR_NAME.'\//i', array_keys($require))));
841
                    break;
842
843
                case self::OTHER_LIBRARY:
844
                    $dependents = array_intersect_key($require, array_flip(preg_grep('/^'.self::VENDOR_NAME.'\//i', array_keys($require), PREG_GREP_INVERT)));
845
                    break;
846
847
                default:
848
                    $dependents = $json['require'];