Code Duplication    Length = 7-7 lines in 2 locations

src/Eccube/Controller/Admin/Content/FileController.php 2 locations

@@ 329-335 (lines=7) @@
326
        return (strpos($targetDir, $topDir) === 0);
327
    }
328
329
    private function convertStrFromServer($target)
330
    {
331
        if ($this->encode == self::SJIS) {
332
            return mb_convert_encoding($target, self::UTF, self::SJIS);
333
        }
334
        return $target;
335
    }
336
337
    private function convertStrToServer($target)
338
    {
@@ 337-343 (lines=7) @@
334
        return $target;
335
    }
336
337
    private function convertStrToServer($target)
338
    {
339
        if ($this->encode == self::SJIS) {
340
            return mb_convert_encoding($target, self::SJIS, self::UTF);
341
        }
342
        return $target;
343
    }
344
}
345