private function getValidatedFilesList($zip)
{
$this->parentFolderName = $this->extractFolderNameBasedOnInfoFile($this->infoFilePath);
// Check every file in the zip
$files = array();
for ($i = 0; $i < $zip->numFiles; ++$i) {
// Get the file name
$file = $zip->statIndex($i);
$fileName = $file['name'];
// We skip all the files that are outside of the theme folder or on the ignore list.
if ($this->checkIfPathContainsIgnoredWord($fileName) || !empty($this->parentFolderName) && mb_stripos($fileName, $this->parentFolderName) !== 0) {
continue;
}
$files[] = $fileName;
}
return $files;
}