Code Duplication    Length = 10-10 lines in 2 locations

src/Client/Cosapi.php 2 locations

@@ 127-136 (lines=10) @@
124
     *
125
     * @return array
126
     */
127
    public static function listFolder(
128
                    $bucketName, $path, $num = 20,
129
                    $pattern = 'eListBoth', $order = 0,
130
                    $context = null)
131
    {
132
        $path = self::normalizerPath($path, true);
133
134
        return self::listBase($bucketName, $path, $num,
135
                $pattern, $order, $context);
136
    }
137
138
    /**
139
     * 目录列表(前缀搜索).
@@ 150-159 (lines=10) @@
147
     *
148
     * @return array
149
     */
150
    public static function prefixSearch(
151
                    $bucketName, $prefix, $num = 20,
152
                    $pattern = 'eListBoth', $order = 0,
153
                    $context = null)
154
    {
155
        $path = self::normalizerPath($prefix);
156
157
        return self::listBase($bucketName, $path, $num,
158
                $pattern, $order, $context);
159
    }
160
161
    /**
162
     * 目录更新.