public function setupAsset(AssetInterface $asset)
{
if ($this->isDebug() && !$this->isCombine() && $asset instanceof AssetCollection) {
// Move assets as single instance not as a collection
foreach ($asset as $value) {
/** @var AssetCollection $value */
$path = $this->getBaseUrl() . $this->getBasePath() . $value->getTargetPath();
$this->helper($path);
}
} else {
$path = $this->getBaseUrl() . $this->getBasePath() . $asset->getTargetPath();
$this->helper($path);
}
}