Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 297-305 (lines=9) @@
294
        $files = iterator_to_array($fileFinder);
295
296
        $arrFileList = array();
297
        foreach ($dirs as $dir) {
298
            $arrFileList[] = array(
299
                'file_name' => $this->convertStrFromServer($dir->getFilename()),
300
                'file_path' => $this->convertStrFromServer($this->normalizePath($dir->getRealPath())),
301
                'file_size' => $dir->getSize(),
302
                'file_time' => date("Y/m/d", $dir->getmTime()),
303
                'is_dir' => true,
304
            );
305
        }
306
        foreach ($files as $file) {
307
            $arrFileList[] = array(
308
                'file_name' => $this->convertStrFromServer($file->getFilename()),
@@ 306-314 (lines=9) @@
303
                'is_dir' => true,
304
            );
305
        }
306
        foreach ($files as $file) {
307
            $arrFileList[] = array(
308
                'file_name' => $this->convertStrFromServer($file->getFilename()),
309
                'file_path' => $this->convertStrFromServer($this->normalizePath($file->getRealPath())),
310
                'file_size' => $file->getSize(),
311
                'file_time' => date("Y/m/d", $file->getmTime()),
312
                'is_dir' => false,
313
            );
314
        }
315
316
        return $arrFileList;
317
    }