isFile() && $entry->getExtension() === 'xml') { $output[] = clone $entry; } elseif ($entry->isDir() && !$entry->isDot()) { $output = array_merge($output, $this->findTargetDescriptionFiles($entry->getPathname())); } } return $output; } }