From 61c3375570794eed99eb6cc11cf9801e6084c9c5 Mon Sep 17 00:00:00 2001 From: MichaelFrey Date: Fri, 22 Nov 2024 17:52:41 +0100 Subject: [PATCH] fix format --- src/PhpWord/PhpWord.php | 9 ++++----- src/PhpWord/Settings.php | 8 ++++---- src/PhpWord/Writer/Word2007/Part/Styles.php | 6 +++--- 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/src/PhpWord/PhpWord.php b/src/PhpWord/PhpWord.php index 8d8142ba88..c0b88f7cbc 100644 --- a/src/PhpWord/PhpWord.php +++ b/src/PhpWord/PhpWord.php @@ -255,8 +255,8 @@ public function setDefaultFontName($fontName): void { Settings::setDefaultFontName($fontName); } - - /** + + /** * Set default font color. * * @param string $fontColor @@ -265,8 +265,8 @@ public function setDefaultFontColor($fontColor): void { Settings::setDefaultFontColor($fontColor); } - - /** + + /** * Get default font color. * * @return string @@ -276,7 +276,6 @@ public function getDefaultFontColor() return Settings::getDefaultFontColor(); } - /** * Get default font size. * diff --git a/src/PhpWord/Settings.php b/src/PhpWord/Settings.php index 3983d6da06..d50a08e5b6 100644 --- a/src/PhpWord/Settings.php +++ b/src/PhpWord/Settings.php @@ -117,13 +117,13 @@ class Settings */ private static $defaultFontName = self::DEFAULT_FONT_NAME; - /** + /** * Default font color. * * @var string */ private static $defaultFontColor = self::DEFAULT_FONT_COLOR; - + /** * Default font size. * @@ -374,8 +374,8 @@ public static function setDefaultFontName(string $value): bool return false; } - - /** + + /** * Get default font color. */ public static function getDefaultFontColor(): string diff --git a/src/PhpWord/Writer/Word2007/Part/Styles.php b/src/PhpWord/Writer/Word2007/Part/Styles.php index c20c465d5c..1d75b34c45 100644 --- a/src/PhpWord/Writer/Word2007/Part/Styles.php +++ b/src/PhpWord/Writer/Word2007/Part/Styles.php @@ -84,7 +84,7 @@ private function writeDefaultStyles(XMLWriter $xmlWriter, $styles): void $phpWord = $this->getParentWriter()->getPhpWord(); $fontName = $phpWord->getDefaultFontName(); $fontSize = $phpWord->getDefaultFontSize(); - $fontColor = $phpWord->getDefaultFontColor(); + $fontColor = $phpWord->getDefaultFontColor(); $language = $phpWord->getSettings()->getThemeFontLang(); $latinLanguage = ($language == null || $language->getLatin() === null) ? 'en-US' : $language->getLatin(); @@ -98,9 +98,9 @@ private function writeDefaultStyles(XMLWriter $xmlWriter, $styles): void $xmlWriter->writeAttribute('w:eastAsia', $fontName); $xmlWriter->writeAttribute('w:cs', $fontName); $xmlWriter->endElement(); // w:rFonts - $xmlWriter->startElement('w:color'); + $xmlWriter->startElement('w:color'); $xmlWriter->writeAttribute('w:val', $fontColor); - $xmlWriter->endElement(); + $xmlWriter->endElement(); $xmlWriter->startElement('w:sz'); $xmlWriter->writeAttribute('w:val', $fontSize * 2); $xmlWriter->endElement(); // w:sz