Skip to content

Commit 61c3375

Browse files
committed
fix format
1 parent 5031311 commit 61c3375

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

src/PhpWord/PhpWord.php

+4-5
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ public function setDefaultFontName($fontName): void
255255
{
256256
Settings::setDefaultFontName($fontName);
257257
}
258-
259-
/**
258+
259+
/**
260260
* Set default font color.
261261
*
262262
* @param string $fontColor
@@ -265,8 +265,8 @@ public function setDefaultFontColor($fontColor): void
265265
{
266266
Settings::setDefaultFontColor($fontColor);
267267
}
268-
269-
/**
268+
269+
/**
270270
* Get default font color.
271271
*
272272
* @return string
@@ -276,7 +276,6 @@ public function getDefaultFontColor()
276276
return Settings::getDefaultFontColor();
277277
}
278278

279-
280279
/**
281280
* Get default font size.
282281
*

src/PhpWord/Settings.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,13 @@ class Settings
117117
*/
118118
private static $defaultFontName = self::DEFAULT_FONT_NAME;
119119

120-
/**
120+
/**
121121
* Default font color.
122122
*
123123
* @var string
124124
*/
125125
private static $defaultFontColor = self::DEFAULT_FONT_COLOR;
126-
126+
127127
/**
128128
* Default font size.
129129
*
@@ -374,8 +374,8 @@ public static function setDefaultFontName(string $value): bool
374374

375375
return false;
376376
}
377-
378-
/**
377+
378+
/**
379379
* Get default font color.
380380
*/
381381
public static function getDefaultFontColor(): string

src/PhpWord/Writer/Word2007/Part/Styles.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ private function writeDefaultStyles(XMLWriter $xmlWriter, $styles): void
8484
$phpWord = $this->getParentWriter()->getPhpWord();
8585
$fontName = $phpWord->getDefaultFontName();
8686
$fontSize = $phpWord->getDefaultFontSize();
87-
$fontColor = $phpWord->getDefaultFontColor();
87+
$fontColor = $phpWord->getDefaultFontColor();
8888
$language = $phpWord->getSettings()->getThemeFontLang();
8989
$latinLanguage = ($language == null || $language->getLatin() === null) ? 'en-US' : $language->getLatin();
9090

@@ -98,9 +98,9 @@ private function writeDefaultStyles(XMLWriter $xmlWriter, $styles): void
9898
$xmlWriter->writeAttribute('w:eastAsia', $fontName);
9999
$xmlWriter->writeAttribute('w:cs', $fontName);
100100
$xmlWriter->endElement(); // w:rFonts
101-
$xmlWriter->startElement('w:color');
101+
$xmlWriter->startElement('w:color');
102102
$xmlWriter->writeAttribute('w:val', $fontColor);
103-
$xmlWriter->endElement();
103+
$xmlWriter->endElement();
104104
$xmlWriter->startElement('w:sz');
105105
$xmlWriter->writeAttribute('w:val', $fontSize * 2);
106106
$xmlWriter->endElement(); // w:sz

0 commit comments

Comments
 (0)