Skip to content

Commit 9afa461

Browse files
committed
Docblock fixes
1 parent 1d84c1d commit 9afa461

File tree

8 files changed

+14
-11
lines changed

8 files changed

+14
-11
lines changed

src/PhpWord/Reader/ODText.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
namespace PhpOffice\PhpWord\Reader;
1111

1212
use PhpOffice\PhpWord\PhpWord;
13-
use PhpOffice\PhpWord\Settings;
1413
use PhpOffice\PhpWord\Shared\XMLReader;
1514

1615
/**

src/PhpWord/Settings.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,16 @@ class Settings
1818
{
1919
/**
2020
* Zip libraries
21+
*
22+
* @const string
2123
*/
2224
const PCLZIP = 'PhpOffice\\PhpWord\\Shared\\ZipArchive';
2325
const ZIPARCHIVE = 'ZipArchive';
2426

2527
/**
2628
* PDF rendering libraries
29+
*
30+
* @const string
2731
*/
2832
const PDF_RENDERER_DOMPDF = 'DomPDF';
2933

src/PhpWord/Style/Border.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function setBorderSize($value = null)
8989
/**
9090
* Get border size
9191
*
92-
* @return array
92+
* @return int[]
9393
*/
9494
public function getBorderSize()
9595
{

src/PhpWord/Style/LineNumbering.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class LineNumbering extends AbstractStyle
5555
*
5656
* @param array $style
5757
*/
58-
public function __construct($style = null)
58+
public function __construct($style = array())
5959
{
6060
$this->setStyleByArray($style);
6161
}

src/PhpWord/Style/Section.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,23 @@
99

1010
namespace PhpOffice\PhpWord\Style;
1111

12-
use PhpOffice\PhpWord\Shared\String;
13-
1412
/**
1513
* Section settings
1614
*/
1715
class Section extends Border
1816
{
1917
/**
2018
* Page orientation
19+
*
20+
* @const string
2121
*/
2222
const ORIENTATION_PORTRAIT = 'portrait';
2323
const ORIENTATION_LANDSCAPE = 'landscape';
24+
2425
/**
2526
* Page default constants
27+
*
28+
* @const int|float
2629
*/
2730
const DEFAULT_WIDTH = 11906; // In twip
2831
const DEFAULT_HEIGHT = 16838; // In twip

src/PhpWord/Style/Table.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public function setBorderSize($pValue = null)
187187
/**
188188
* Get TLRBVH Border Size
189189
*
190-
* @return array
190+
* @return int[]
191191
*/
192192
public function getBorderSize()
193193
{
@@ -218,7 +218,7 @@ public function setBorderColor($pValue = null)
218218
/**
219219
* Get TLRB Border Color
220220
*
221-
* @return array
221+
* @return string[]
222222
*/
223223
public function getBorderColor()
224224
{
@@ -408,7 +408,7 @@ public function setCellMargin($pValue = null)
408408
/**
409409
* Get cell margin
410410
*
411-
* @return array
411+
* @return int[]
412412
*/
413413
public function getCellMargin()
414414
{

src/PhpWord/Writer/ODText/Element/TextRun.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
namespace PhpOffice\PhpWord\Writer\ODText\Element;
1111

1212
use PhpOffice\PhpWord\Element\Text as TextElement;
13-
use PhpOffice\PhpWord\Element\Link as LinkElement;
14-
use PhpOffice\PhpWord\Writer\ODText\Element\Element as ElementWriter;
1513

1614
/**
1715
* TextRun element writer

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
namespace PhpOffice\PhpWord\Writer\Word2007\Part;
1111

1212
use PhpOffice\PhpWord\PhpWord;
13-
use PhpOffice\PhpWord\Settings;
1413
use PhpOffice\PhpWord\Element\AbstractElement;
1514
use PhpOffice\PhpWord\Element\TextBreak;
1615
use PhpOffice\PhpWord\Exception\Exception;

0 commit comments

Comments
 (0)