Code Duplication    Length = 3-3 lines in 2 locations

src/Eccube/Service/PluginService.php 2 locations

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