Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR 0.11.0 #256

Merged
merged 214 commits into from
Jun 1, 2014
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
214 commits
Select commit Hold shift + click to select a range
9c11067
Added Image relative and absolute positioning
May 3, 2014
725162b
Deprecate static classes Footnotes, Endnotes, and TOC (#206); Reactiv…
ivanlanin May 3, 2014
f6f52af
Fix Travis build error
ivanlanin May 4, 2014
2187954
Fixed bug in header, wherein all images were assigned to the first
May 4, 2014
15dcb38
Messed up something. Resetting
May 4, 2014
1a544cb
Fixed bug in header / footer, in which media elements were all assigned
May 4, 2014
c21e28f
More refactoring for PHPMD compliance
ivanlanin May 4, 2014
a62a58a
#154 : PHPDocumentor on GH-Pages
Progi1984 May 4, 2014
a5287ac
#154 : PHPDocumentor on GH-Pages
Progi1984 May 4, 2014
de2b7d8
#154 : PHPDocumentor on GH-Pages
Progi1984 May 4, 2014
35d06cc
Change PHPWord license to LGPL 3 as per #211
ivanlanin May 4, 2014
2ae47e7
Merge branch 'develop' of github.com:PHPOffice/PHPWord into develop
ivanlanin May 4, 2014
6898ada
Merge branch 'develop' of github.com:basjan/PHPWord into #217-basjan
ivanlanin May 4, 2014
cbf0c07
#154 : PHPDocumentor on GH-Pages
Progi1984 May 4, 2014
9aec521
#154 : PHPDocumentor on GH-Pages
Progi1984 May 4, 2014
06462fb
#154 : PHPDocumentor on GH-Pages
Progi1984 May 4, 2014
42c712e
Refactor new image styles and create `Word2007/Style/Image` class
ivanlanin May 4, 2014
f7b4542
Merge remote-tracking branch 'upstream/develop' into develop
ivanlanin May 4, 2014
4824985
Merge branch '#217-basjan' into develop
ivanlanin May 4, 2014
3d19256
Merge branch 'develop' into nonstatic
ivanlanin May 4, 2014
250562d
Added firstPage function and evenPage function to bring Footer Element
May 4, 2014
d1022a9
QA: PHPMD fixes for `tests`; Some adjustment for Travis build
ivanlanin May 4, 2014
dd01ed1
Fix .travis.yml
ivanlanin May 4, 2014
6c3d1e7
License version has been added.
May 4, 2014
fd4fa11
Merge remote-tracking branch 'upstream/develop' into nonstatic
ivanlanin May 4, 2014
acd25a4
Merge pull request #220 from ivanlanin/nonstatic
ivanlanin May 4, 2014
ce85cc5
Merge branch 'footer' of github.com:basjan/PHPWord into develop
ivanlanin May 4, 2014
aba1548
Corrected typo to 'const POSITION_HORIZONTAL_CENTER = 'center';' and
May 4, 2014
11b3941
Fixed a bug, that when a second header was added to a section, all
May 4, 2014
d11376e
Merge branch 'second-header-bug' of github.com:basjan/PHPWord into de…
ivanlanin May 5, 2014
6dd51c5
Update changelog and add sample for bug fix #222
ivanlanin May 5, 2014
61b5f68
[CHANGED] References to ISO/IEC 29500 spec were documented.
May 5, 2014
4194dd4
[CHANGED] References to ISO/IEC 29500 spec were documented.
May 5, 2014
8c9890f
[FIXED] License in "composer.json".
May 5, 2014
105e53b
#154 : Ignore PCLZip in PHPDocumentor
Progi1984 May 5, 2014
ec0de29
#154 : Change template for PHPDocumentor
Progi1984 May 5, 2014
89f94b7
[CHANGED] https://github.com/PHPOffice/PHPWord/pull/179 - copyright i…
May 5, 2014
dcf8fae
Merge remote-tracking branch 'origin/develop' into develop
May 5, 2014
2add554
[CHANGED] https://github.com/PHPOffice/PHPWord/pull/179 - copyright n…
May 5, 2014
5a2f402
QA: Additional unit testing and template scrutinizer config file
ivanlanin May 5, 2014
061ba4b
Including `composer.lock` to enable Scrutinizer test https://scrutini…
ivanlanin May 5, 2014
febb9d0
Update changelog for #154 and #186
ivanlanin May 5, 2014
b2a0e08
#154: Update documentation to include API docs and code coverage report
ivanlanin May 5, 2014
704cc2f
Refactoring: Extends Endnotes from Footnotes & Heder from Footer
ivanlanin May 5, 2014
4039304
Word2007 Writer: Refactor writer parts using composite pattern
ivanlanin May 5, 2014
15c3896
Improved Test Unit for Image Style in line with additions of #217
May 5, 2014
cb97979
Merge pull request #226 from basjan/image-test-unit
ivanlanin May 6, 2014
5c69253
Merge remote-tracking branch 'upstream/develop' into develop
ivanlanin May 6, 2014
13c178d
Refactor: Composite Word2007 & ODText writer parts
ivanlanin May 6, 2014
37152cd
Enable code coverage in Scrutinizer
ivanlanin May 6, 2014
b3229c6
Fix Travis test and update Scrutinizer config
ivanlanin May 6, 2014
2432a85
Show code quality and test code coverage badge on README
ivanlanin May 6, 2014
b7374f8
#186 : Add badges for license & stable version
Progi1984 May 6, 2014
2ab5a42
Split some functions for code quality improvement
ivanlanin May 6, 2014
c28f28e
Refactoring for code quality improvement (based on Scrutinizer)
ivanlanin May 6, 2014
1f5e58a
Merge branch 'develop' of github.com:ivanlanin/PHPWord into develop
ivanlanin May 6, 2014
c4e8fda
Refactoring for code quality improvement (based on Scrutinizer)
ivanlanin May 6, 2014
0c1e47d
Type checking
ivanlanin May 6, 2014
51d69a4
Refactoring based on Scrutinizer recommendation
ivanlanin May 6, 2014
e0638f5
Change Scrutinizer similarity analysis min mass
ivanlanin May 6, 2014
88560de
Refactor writers
ivanlanin May 7, 2014
364131a
Added TextBox functionality
May 7, 2014
c7a940c
Merge branch 'textbox' of github.com:basjan/PHPWord
ivanlanin May 8, 2014
6a0bfe3
Move `addTextBox` to `AbstractContainer` and add sample for textbox
ivanlanin May 8, 2014
e9c548e
Merge branch '#228-basjan-textbox' into develop
ivanlanin May 8, 2014
e12daac
Merge branch 'refactor' into develop
ivanlanin May 8, 2014
ea41b08
Refactor the new textbox element
ivanlanin May 8, 2014
f7dd9dd
Refactor writers and styles
ivanlanin May 8, 2014
8a1d07f
Fix Travis test errors
ivanlanin May 8, 2014
6f0579c
Fix Travis build error
ivanlanin May 8, 2014
ade740b
Fixed a bug in TextBox; addText to a TextBox was treated 'withoutP'.
May 8, 2014
841bc2a
Revert "Fixed a bug in TextBox; addText to a TextBox was treated 'wit…
May 8, 2014
474d360
Fixed a bug in TextBox; addText to a TextBox was treated 'withoutP'.
May 8, 2014
246557e
Reactivate PHPMD and fix some rules for textbox
ivanlanin May 8, 2014
8457169
Merge branch 'bug-textbox' of github.com:basjan/PHPWord
ivanlanin May 8, 2014
8c9c040
Merge branch '#229-basjan' into develop
ivanlanin May 8, 2014
0b13b22
Refactor HTML & PDF writer with composite pattern
ivanlanin May 9, 2014
530f8ee
Writers refactoring fixes
ivanlanin May 10, 2014
aa151c4
Added function to add elements via HTML
May 10, 2014
07b4ae2
Added possiblity to add tables inside textbox
May 10, 2014
a595e6d
Merge branch 'AddHtml' of github.com:basjan/PHPWord
ivanlanin May 10, 2014
62ed725
Some modifications for the new `Html::addHtml` feature
ivanlanin May 10, 2014
c82f0ac
Merge branch '#231-basjan' into develop
ivanlanin May 10, 2014
feff87e
Fix Travis test errors
ivanlanin May 10, 2014
9ea767e
Table inside textbox sample
ivanlanin May 10, 2014
516c13e
Some unit tests for the new features
ivanlanin May 10, 2014
c524394
Fixed conversion factor Centimeters to Pixels and vice versa.
May 10, 2014
967c8b2
Fix unit test for px2cm and cm2px conversion
ivanlanin May 11, 2014
9567c6a
Merge branch '#233-basjan' into develop
ivanlanin May 11, 2014
17e2f02
Type checks on style writers
ivanlanin May 11, 2014
afc3d5c
Minor fix. If conversion factor from pointToPixel is 1.333333, then the
May 11, 2014
539a173
Amended the corresponding test
May 11, 2014
467f15a
Added ListItemRun Element
May 11, 2014
ded651d
#149: Ability to add table inside a cell (nested table)
ivanlanin May 11, 2014
fc66030
Merge branch 'Fixed-conversion' of github.com:basjan/PHPWord into #23…
ivanlanin May 11, 2014
da77ba6
Merge branch 'ListItemRun' of github.com:basjan/PHPWord into #234-#23…
ivanlanin May 11, 2014
8c9e511
Update changelog
ivanlanin May 11, 2014
27d18fd
Merge branch '#234-#235-basjan' into develop
ivanlanin May 11, 2014
7d5c62a
Merge branch 'nestedtable' into develop
ivanlanin May 11, 2014
c243a11
Additional type checks in style writers
ivanlanin May 11, 2014
c7e4ed0
Type check in element writers
ivanlanin May 11, 2014
c9179d6
Refactor elements and containers
ivanlanin May 11, 2014
55e715b
Add variable type hints
ivanlanin May 12, 2014
e589961
#158: Convert UTF8 text to Unicode before writing RTF (support UTF8 i…
ivanlanin May 12, 2014
f8f98cc
#237: Ability to define table width (in percent and twip) and position
ivanlanin May 12, 2014
4b1a160
#196: Ability to add links and page breaks in RTF
ivanlanin May 12, 2014
8745c5e
Change behaviour of `set...` function of boolean properties; Some bug…
ivanlanin May 13, 2014
7ae8c3c
Refactoring: Word2007 table and marginborder style writer
ivanlanin May 13, 2014
1ee43da
#196: RTF link styling
ivanlanin May 13, 2014
e03e121
#196: RTF link styling fixes
ivanlanin May 13, 2014
6ba6ed4
Reactivate php_sim in Scrutinizer and fix some minor issues
ivanlanin May 14, 2014
7b673af
QA : PHP CodeSniffer (PEAR to Composer)
Progi1984 May 14, 2014
e94e273
QA : PHP CodeSniffer (PEAR to Composer)
Progi1984 May 14, 2014
04a62f3
QA: Code cleanup and some additional tests
ivanlanin May 14, 2014
f9123d2
Merge branch 'cleanup' into develop
ivanlanin May 14, 2014
4edf8ed
Fix unit tests
ivanlanin May 14, 2014
e40b377
Remove PHP 5.3.3 and 5.6 from Travis allowed failures and update comp…
ivanlanin May 14, 2014
27fa3ba
Remove fontStyle parameter from ListItemRun and various small fixes
ivanlanin May 14, 2014
abbf60a
Increase minimum mass for php_sim and some test fixes
ivanlanin May 15, 2014
1c3735f
Refactor table and font styles to reduce duplication
ivanlanin May 15, 2014
4d9e406
QA: Scrutinizer dedup
ivanlanin May 15, 2014
f1b2243
Short tag fix
ivanlanin May 15, 2014
5511378
#200: Ability to use a config file to store various common settings
ivanlanin May 15, 2014
f380c29
Add `writeRaw` annotation and disambiguate `Settings`
ivanlanin May 15, 2014
048436c
Use INI instead of YML
ivanlanin May 16, 2014
7c12dfc
Fixes for last commit
ivanlanin May 16, 2014
1c7e327
Small change to test the new gh-pages branch
ivanlanin May 16, 2014
710e147
Merge pull request #240 from ivanlanin/config
ivanlanin May 16, 2014
5519131
Unify PHP ZipArchive and PCLZip features into PhpWord ZipArchive
ivanlanin May 17, 2014
3f61d18
Test fixes
ivanlanin May 17, 2014
0a8c3d6
Deactivate ZipArchive::close test
ivanlanin May 17, 2014
f825ef5
Reorder code
ivanlanin May 17, 2014
b91e320
Refactor ODT writer to give enable some additional features
ivanlanin May 18, 2014
410ce4b
ODT: Enable section and column
ivanlanin May 18, 2014
970c6a2
Bug fixes for last commit
ivanlanin May 18, 2014
b1e16e4
Word2007: Reformat fonttable and theme parts
ivanlanin May 18, 2014
7d9bcd4
ODT: New Image and Table style writer
ivanlanin May 18, 2014
39d4e8e
Bugfix #150: Page break adds new line in the beginning of the new page
ivanlanin May 18, 2014
5c8bab8
Fix Travis test
ivanlanin May 18, 2014
d64fc98
Merge branch 'zip' into develop
ivanlanin May 18, 2014
32f1f62
Change Settings constants
ivanlanin May 18, 2014
553371f
Type hinting and docblock update
ivanlanin May 18, 2014
f7bee23
Add TCPDF and mPDF as optional PDF renderer library
ivanlanin May 19, 2014
0360f8e
Unit tests for TCPDF and mPDF
ivanlanin May 19, 2014
69a3a0f
Refactor reader
ivanlanin May 19, 2014
930d8de
ODT Writer: Enable title element and custom document properties
ivanlanin May 20, 2014
ac23e90
ODT Reader: Ability to read standard and custom document properties
ivanlanin May 20, 2014
f536bd6
Merge branch 'develop' into reader
ivanlanin May 20, 2014
61c6d51
Refactor Word2007 reader
ivanlanin May 20, 2014
1971510
Update composer requirements for php-zip. With PCLZip support added t…
hskrtich May 20, 2014
721c582
Small fixes for the last commit
ivanlanin May 20, 2014
e6931fa
Merge pull request #242 from bskrtich/develop
ivanlanin May 20, 2014
5188b36
Merge remote-tracking branch 'upstream/develop' into develop
ivanlanin May 20, 2014
5aac7f4
From upstream
May 20, 2014
343f378
Merge branch 'develop' of https://github.com/PHPOffice/PHPWord.git in…
May 20, 2014
3569271
Word2007 Writer: Enable the missing custom document properties writer
ivanlanin May 21, 2014
d764de0
Additional unit tests and @since documentation
ivanlanin May 21, 2014
fbce1c8
#244: Enable "image float left"
ivanlanin May 21, 2014
2086e9e
Refactor: Reduce cyclomatic complexity
ivanlanin May 22, 2014
71a1db8
[CHANGED] License has been split into two files as recommended here h…
May 22, 2014
23047c0
[CHANGED] License has been split into two files as recommended here h…
May 22, 2014
73bdd4f
[CHANGED] License has been split into two files as recommended here h…
May 22, 2014
571e084
[CHANGED] License has been split into two files as recommended here h…
May 22, 2014
e46fecf
RTF Writer: Ability to write document properties
ivanlanin May 22, 2014
045cc87
Merge branch 'rtf' into develop
ivanlanin May 23, 2014
6351792
Merge remote-tracking branch 'upstream/develop' into develop
ivanlanin May 23, 2014
d79ca9a
Reduce cyclomatic complexity on DocumentProperties and Word2007 Docum…
ivanlanin May 23, 2014
e00b551
Breakdown HTML Writer to head and body parts and more cyclomatic comp…
ivanlanin May 23, 2014
a65c3c3
RTF Writer: Ability to write image
ivanlanin May 23, 2014
991016a
Additional writer test
ivanlanin May 23, 2014
f1eded7
Merge branch 'master' into develop
ivanlanin May 24, 2014
248d82d
Add two recipes
ivanlanin May 24, 2014
e24c16f
Merge remote-tracking branch 'upstream/master' into develop
ivanlanin May 24, 2014
5ff47f4
QA: Misc. bugfixes and docblock improvements
ivanlanin May 24, 2014
1e9a498
QA: Reduce some complexities: https://scrutinizer-ci.com/g/PHPOffice/…
ivanlanin May 24, 2014
dc6c487
Fix test error
ivanlanin May 24, 2014
92c7a24
QA: Additional unit tests and docblock fixes
ivanlanin May 25, 2014
36080c1
Merge branch 'develop' of https://github.com/PHPOffice/PHPWord.git in…
May 25, 2014
d9a2c4c
Bugfix #248: Image: `marginLeft` and `marginTop` cannot accept float …
ivanlanin May 26, 2014
d7f3d25
#248 More flexible checking for float value
ivanlanin May 26, 2014
3085445
Merge branch 'develop' of https://github.com/PHPOffice/PHPWord.git in…
May 26, 2014
88f6518
Init VERSION and improve requirement checking
ivanlanin May 28, 2014
eb32ff2
#244 : Fix typo in recipe sample
Progi1984 May 28, 2014
87f071d
#72: Basic RTF Reader
ivanlanin May 27, 2014
086ac9d
Merge remote-tracking branch 'upstream/develop' into develop
ivanlanin May 28, 2014
f9a1f34
Merge branch 'rtfreader' into rtf
ivanlanin May 28, 2014
9e99080
Merge branch 'develop' of https://github.com/PHPOffice/PHPWord.git in…
May 28, 2014
079d08e
Added Field Element
May 28, 2014
8f74f26
Travis build error fix
May 28, 2014
2d88ea2
RTF Reader: Split control parsers into functions
ivanlanin May 29, 2014
e81d92e
Update changelog, docs, and unit tests for new `Field` element #251
ivanlanin May 29, 2014
7c2ad59
Merge branch 'develop' into rtf
ivanlanin May 29, 2014
7a42802
RTF reader: Unit tests and some improvements
ivanlanin May 29, 2014
4bb3ffe
Apply #250 fix a minor typo in the text styles example
ivanlanin May 29, 2014
0fcea82
Merge pull request #252 from ivanlanin/rtf
ivanlanin May 29, 2014
1580113
Added Line element
May 29, 2014
54af93a
Fixed some Travis build errors
May 29, 2014
0103787
Second attempt to resolve Travis build errors
May 29, 2014
748e164
Final try to resolve Travis build errors
May 29, 2014
a57b28d
Some adjustments for the new `Line` element #253
ivanlanin May 29, 2014
5c2c687
#193: Heading numbering
ivanlanin May 29, 2014
d3ac5b1
Merge branch '#193' into develop
ivanlanin May 30, 2014
900a96a
Bugfix for #236 (OpenOffice crash when opening DOCX) and paragraph st…
ivanlanin May 30, 2014
4f93998
QA: Docblock improvements and -q parameter for phpdoc
ivanlanin May 30, 2014
0164e37
Decompose Shared\Html
ivanlanin May 30, 2014
ec85d7d
#80: Basic HTML reader
ivanlanin May 30, 2014
022cdeb
Documentation updates and test fix for #254
ivanlanin May 30, 2014
4fdc7b8
Merge pull request #254 from ivanlanin/develop
ivanlanin May 30, 2014
e7540c0
Add $nestedLevel to elements
ivanlanin May 31, 2014
2205377
#245: Basic table support in RTF writer
ivanlanin May 31, 2014
269def4
Merge remote-tracking branch 'upstream/develop' into develop
ivanlanin May 31, 2014
9839222
QA: Additional unit tests
ivanlanin May 31, 2014
e0d2c65
Refactor IOFactory and AbstractContainer to allow more dynamic inclus…
ivanlanin May 31, 2014
ce21e8d
PR 0.11.0 #225
ivanlanin Jun 1, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
QA: Docblock improvements and -q parameter for phpdoc
  • Loading branch information
ivanlanin committed May 30, 2014
commit 4f9399899a2281cc1120782911bc88e16f8d93bc
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ script:
## PHPUnit
- phpunit -c ./ --coverage-text --coverage-html ./build/coverage
## PHPDocumentor
- vendor/bin/phpdoc.php -d ./src -t ./build/docs --ignore "*/src/PhpWord/Shared/*/*" --template="responsive-twig"
- vendor/bin/phpdoc.php -q -d ./src -t ./build/docs --ignore "*/src/PhpWord/Shared/*/*" --template="responsive-twig"

after_script:
## PHPDocumentor
Expand Down
2 changes: 2 additions & 0 deletions src/PhpWord/Reader/Word2007/AbstractPart.php
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,7 @@ private function readCellStyle(XMLReader $xmlReader, \DOMElement $domNode)
* @param \PhpOffice\PhpWord\Shared\XMLReader $xmlReader
* @param \DOMElement $parentNode
* @param array $styleDefs
* @ignoreScrutinizerPatch
* @return array
*/
protected function readStyleDefs(XMLReader $xmlReader, \DOMElement $parentNode = null, $styleDefs = array())
Expand Down Expand Up @@ -467,6 +468,7 @@ protected function readStyleDefs(XMLReader $xmlReader, \DOMElement $parentNode =
* Return style definition based on conversion method
*
* @param string $method
* @ignoreScrutinizerPatch
* @param mixed $attributeValue
* @param mixed $expected
* @return mixed
Expand Down
1 change: 1 addition & 0 deletions src/PhpWord/Reader/Word2007/Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ private function readHeaderFooter($settings, Section &$section)
*
* @param \PhpOffice\PhpWord\Shared\XMLReader $xmlReader
* @param \DOMElement $domNode
* @ignoreScrutinizerPatch
* @return array
*/
private function readSectionStyle(XMLReader $xmlReader, \DOMElement $domNode)
Expand Down
4 changes: 3 additions & 1 deletion src/PhpWord/Shared/Html.php
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,9 @@ protected static function parseNode(
$cNodes = $node->childNodes;
if (count($cNodes) > 0) {
foreach ($cNodes as $cNode) {
self::parseNode($cNode, $newobject, $styles, $data);
if ($newobject instanceof \PhpOffice\PhpWord\Element\AbstractContainer) {
self::parseNode($cNode, $newobject, $styles, $data);
}
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/PhpWord/Style/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ public function getMarginTop()
/**
* Set margin top
*
* @ignoreScrutinizerPatch
* @param int|float $value
* @return self
*/
Expand All @@ -268,6 +269,7 @@ public function getMarginLeft()
/**
* Set margin left
*
* @ignoreScrutinizerPatch
* @param int|float $value
* @return self
*/
Expand Down
4 changes: 3 additions & 1 deletion src/PhpWord/Style/Paragraph.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public function setStyleValue($key, $value)
*/
public function getStyleValues()
{
return array(
$styles = array(
'name' => $this->getStyleName(),
'basedOn' => $this->getBasedOn(),
'next' => $this->getNext(),
Expand All @@ -209,6 +209,8 @@ public function getStyleValues()
),
'tabs' => $this->getTabs(),
);

return $styles;
}

/**
Expand Down
7 changes: 4 additions & 3 deletions src/PhpWord/Writer/Word2007/Style/Paragraph.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
use PhpOffice\PhpWord\Shared\XMLWriter;
use PhpOffice\PhpWord\Style;
use PhpOffice\PhpWord\Style\Alignment as AlignmentStyle;
use PhpOffice\PhpWord\Style\Paragraph as ParagraphStyle;

/**
* Paragraph style writer
Expand Down Expand Up @@ -71,7 +72,7 @@ public function write()
private function writeStyle()
{
$style = $this->getStyle();
if (!$style instanceof \PhpOffice\PhpWord\Style\Paragraph) {
if (!$style instanceof ParagraphStyle) {
return;
}
$xmlWriter = $this->getXmlWriter();
Expand Down Expand Up @@ -114,7 +115,7 @@ private function writeStyle()
*
* @param \PhpOffice\PhpWord\Shared\XMLWriter $xmlWriter
* @param string $name
* @param string $value
* @param mixed $value
*/
private function writeChildStyle(XMLWriter $xmlWriter, $name, $value)
{
Expand All @@ -131,7 +132,7 @@ private function writeChildStyle(XMLWriter $xmlWriter, $name, $value)
* Write tabs
*
* @param \PhpOffice\PhpWord\Shared\XMLWriter $xmlWriter
* @param array $tabs
* @param \PhpOffice\PhpWord\Style\Tab[] $tabs
*/
private function writeTabs(XMLWriter $xmlWriter, $tabs)
{
Expand Down