src/ShopProductExportBundle/objects/TPkgShopProductExportCSVEndPoint.class.php
protected function CleanContent($sValue)
    {
        $sValue = parent::CleanContent($sValue);
        $sValue = preg_replace('/\ +/', ' ', $sValue);

        if ('"' === $this->sEnclosure) {
            return $sValue;
        }

        if (true === \in_array($this->sDelimiter, [',', "\t", "\n"], true)) {
            $sValue = str_replace($this->sDelimiter, ' ', $sValue);
        } else {
            $sValue = str_replace($this->sDelimiter, ',', $sValue);
        }

        return $sValue;
    }
protected function CleanContent($sValue)
    {
        $sValue = parent::CleanContent($sValue);
        $sValue = preg_replace('/\ +/', ' ', $sValue);

        if ('"' === $this->sEnclosure) {
            return $sValue;
        }

        if (true === \in_array($this->sDelimiter, [',', "\t", "\n"], true)) {
            $sValue = str_replace($this->sDelimiter, ' ', $sValue);
        } else {
            $sValue = str_replace($this->sDelimiter, ',', $sValue);
        }

        return $sValue;
    }
protected function CleanContent ( $ sValue ) { $ sValue = parent :: CleanContent ( $ sValue ) ; $ sValue = preg_replace ( '/\ +/' , ' ' , $ sValue ) ; if ( '"' === $ this -> sEnclosure ) { return $ sValue ; } if ( true === \ in_array ( $ this -> sDelimiter , [ ',' , "\t" , "\n" ] , true ) ) { $ sValue = str_replace ( $ this -> sDelimiter , ' ' , $ sValue ) ; } else { $ sValue = str_replace ( $ this -> sDelimiter , ',' , $ sValue ) ; } return $ sValue ; }
Clean double blanks in content and replace delimiter to avoid errors.

@param $sValue

@return string
Clean double blanks in content and replace delimiter to avoid errors .