/** * Returns entry content * * @param io.archive.zip.ZipEntry entry * @return string */ protected function entryContent(\io\archive\zip\ZipEntry $entry) { if ($entry->isDirectory()) { return null; } else { return (string) Streams::readAll($entry->getInputStream()); } }