Box\Spout\Writer\Common\Helper\AbstractStyleHelper::applyExtraStylesIfNeeded PHP Method

applyExtraStylesIfNeeded() public method

Typically, set "wrap text" if a cell contains a new line.
public applyExtraStylesIfNeeded ( Style $style, array $dataRow ) : Style
$style Box\Spout\Writer\Style\Style The original style
$dataRow array The row the style will be applied to
return Box\Spout\Writer\Style\Style The updated style
    public function applyExtraStylesIfNeeded($style, $dataRow)
    {
        $updatedStyle = $this->applyWrapTextIfCellContainsNewLine($style, $dataRow);
        return $updatedStyle;
    }