/** * @param Style $styleToUpdate Style to update (passed as reference) * @param Style $baseStyle * @return void */ private function mergeOtherFontProperties($styleToUpdate, $baseStyle) { if (!$this->hasSetFontSize && $baseStyle->getFontSize() !== self::DEFAULT_FONT_SIZE) { $styleToUpdate->setFontSize($baseStyle->getFontSize()); } if (!$this->hasSetFontColor && $baseStyle->getFontColor() !== self::DEFAULT_FONT_COLOR) { $styleToUpdate->setFontColor($baseStyle->getFontColor()); } if (!$this->hasSetFontName && $baseStyle->getFontName() !== self::DEFAULT_FONT_NAME) { $styleToUpdate->setFontName($baseStyle->getFontName()); } }