Code Duplication    Length = 3-3 lines in 2 locations

src/Eccube/Service/PluginService.php 2 locations

@@ 956-958 (lines=3) @@
953
        if (isset($json['require'])) {
954
            $require = $json['require'];
955
            switch ($libraryType) {
956
                case self::ECCUBE_LIBRARY:
957
                    $dependents = array_intersect_key($require, array_flip(preg_grep('/^'.self::VENDOR_NAME.'\//i', array_keys($require))));
958
                    break;
959
960
                case self::OTHER_LIBRARY:
961
                    $dependents = array_intersect_key($require, array_flip(preg_grep('/^'.self::VENDOR_NAME.'\//i', array_keys($require), PREG_GREP_INVERT)));
@@ 960-962 (lines=3) @@
957
                    $dependents = array_intersect_key($require, array_flip(preg_grep('/^'.self::VENDOR_NAME.'\//i', array_keys($require))));
958
                    break;
959
960
                case self::OTHER_LIBRARY:
961
                    $dependents = array_intersect_key($require, array_flip(preg_grep('/^'.self::VENDOR_NAME.'\//i', array_keys($require), PREG_GREP_INVERT)));
962
                    break;
963
964
                default:
965
                    $dependents = $json['require'];