protected function calculateNewValue($replace, $rowNum)
    {
        $value = $this->handlePossibleClosure($replace);

        return $this->replacePlaceholders($value, $rowNum);
    }
protected function calculateNewValue($replace, $rowNum)
    {
        $value = $this->handlePossibleClosure($replace);

        return $this->replacePlaceholders($value, $rowNum);
    }
protected function calculateNewValue ( $ replace , $ rowNum ) { $ value = $ this -> handlePossibleClosure ( $ replace ) ; return $ this -> replacePlaceholders ( $ value , $ rowNum ) ; }
Calculate new value for each row.

@param string|callable $replace
@param int             $rowNum

@return string
Calculate new value for each row .