/** * Clean collection production files. * * @param \Basset\Collection $collection * @param \Basset\Manifest\Entry $entry * @return void */ protected function cleanProductionFiles(Collection $collection, Entry $entry) { foreach ($entry->getProductionFingerprints() as $fingerprint) { $wildcardPath = $this->replaceFingerprintWithWildcard($fingerprint); $this->deleteMatchingFiles($this->buildPath . '/' . $wildcardPath, $fingerprint); } }