/** * @param SplFileInfo $file * * @return array */ protected function mapFileInfo(SplFileInfo $file) { $normalized = parent::mapFileInfo($file); if ($normalized['type'] === 'link') { $normalized['type'] = 'dir'; } return $normalized; }
/** * Map file info to normalized key names * * @param \SplFileInfo $file The original file info class * @return array */ protected function mapFileInfo(SplFileInfo $file) { $default = parent::mapFileInfo($file); $default['owner'] = $file->getOwner(); return $default; }