Skip to content

Commit f380c29

Browse files
committed
Add writeRaw annotation and disambiguate Settings
1 parent 5511378 commit f380c29

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/PhpWord/Shared/XMLWriter.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,13 @@
2828
/**
2929
* XMLWriter wrapper
3030
*
31-
* @method bool writeElement(string $name, string $content = null)
32-
* @method bool startElement(string $name)
33-
* @method bool writeAttribute(string $name, string $value)
3431
* @method bool endElement()
3532
* @method bool startDocument(string $version = 1.0, string $encoding = null, string $standalone = null)
33+
* @method bool startElement(string $name)
3634
* @method bool text(string $content)
35+
* @method bool writeAttribute(string $name, string $value)
36+
* @method bool writeElement(string $name, string $content = null)
37+
* @method bool writeRaw(string $content)
3738
*/
3839
class XMLWriter
3940
{

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
namespace PhpOffice\PhpWord\Writer\Word2007\Part;
1919

20-
use PhpOffice\PhpWord\Settings;
20+
use PhpOffice\PhpWord\Settings as PhpWordSettings;
2121
use PhpOffice\PhpWord\Shared\XMLWriter;
2222
use PhpOffice\PhpWord\Style;
2323
use PhpOffice\PhpWord\Style\Font;
@@ -158,8 +158,8 @@ public function write()
158158
*/
159159
private function writeDefaultStyles(XMLWriter $xmlWriter, $styles)
160160
{
161-
$fontName = Settings::getDefaultFontName();
162-
$fontSize = Settings::getDefaultFontSize();
161+
$fontName = PhpWordSettings::getDefaultFontName();
162+
$fontSize = PhpWordSettings::getDefaultFontSize();
163163

164164
// Default font
165165
$xmlWriter->startElement('w:docDefaults');

0 commit comments

Comments
 (0)