protected function _zipFileHandling($linkFiles) { //begin of zip hashes manipulation foreach ($linkFiles['zipHashes'] as $zipHash) { $result = $this->fileStorage->linkZipToProject($this->projectStructure['create_date'], $zipHash, $this->projectStructure['id_project']); if (!$result) { Log::doLog("Failed to store the Zip file {$zipHash} - \n"); $this->projectStructure['result']['errors'][] = array("code" => -10, "message" => "Failed to store the original Zip {$zipHash} "); throw new Exception("Failed to store the original Zip {$zipHash} "); //Exit } } //end zip hashes manipulation }