src/Modules/Assets/Asset.php
public function getFileAsset($assets_dir)
    {
        if (!is_null($this->file_asset)) {
            return $this->file_asset;
        }

        $filters = [];
        if ($this->getType() === 'js') {
            $this->file_asset = new FileAsset($this->getPath(), $filters);
            return $this->file_asset;
        }

        $asset_path_temp = $this->replaceRelativeLinks($assets_dir);

        if ($this->getType() === 'less') {
            $filters[] = new LessphpFilter();
        }
        $this->file_asset = new FileAsset($asset_path_temp, $filters);
        return $this->file_asset;
    }
public function getFileAsset($assets_dir)
    {
        if (!is_null($this->file_asset)) {
            return $this->file_asset;
        }

        $filters = [];
        if ($this->getType() === 'js') {
            $this->file_asset = new FileAsset($this->getPath(), $filters);
            return $this->file_asset;
        }

        $asset_path_temp = $this->replaceRelativeLinks($assets_dir);

        if ($this->getType() === 'less') {
            $filters[] = new LessphpFilter();
        }
        $this->file_asset = new FileAsset($asset_path_temp, $filters);
        return $this->file_asset;
    }
@param string $assets_dir

@return FileAsset