File tree Expand file tree Collapse file tree 8 files changed +14
-11
lines changed Expand file tree Collapse file tree 8 files changed +14
-11
lines changed Original file line number Diff line number Diff line change 10
10
namespace PhpOffice \PhpWord \Reader ;
11
11
12
12
use PhpOffice \PhpWord \PhpWord ;
13
- use PhpOffice \PhpWord \Settings ;
14
13
use PhpOffice \PhpWord \Shared \XMLReader ;
15
14
16
15
/**
Original file line number Diff line number Diff line change @@ -18,12 +18,16 @@ class Settings
18
18
{
19
19
/**
20
20
* Zip libraries
21
+ *
22
+ * @const string
21
23
*/
22
24
const PCLZIP = 'PhpOffice \\PhpWord \\Shared \\ZipArchive ' ;
23
25
const ZIPARCHIVE = 'ZipArchive ' ;
24
26
25
27
/**
26
28
* PDF rendering libraries
29
+ *
30
+ * @const string
27
31
*/
28
32
const PDF_RENDERER_DOMPDF = 'DomPDF ' ;
29
33
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ public function setBorderSize($value = null)
89
89
/**
90
90
* Get border size
91
91
*
92
- * @return array
92
+ * @return int[]
93
93
*/
94
94
public function getBorderSize ()
95
95
{
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ class LineNumbering extends AbstractStyle
55
55
*
56
56
* @param array $style
57
57
*/
58
- public function __construct ($ style = null )
58
+ public function __construct ($ style = array () )
59
59
{
60
60
$ this ->setStyleByArray ($ style );
61
61
}
Original file line number Diff line number Diff line change 9
9
10
10
namespace PhpOffice \PhpWord \Style ;
11
11
12
- use PhpOffice \PhpWord \Shared \String ;
13
-
14
12
/**
15
13
* Section settings
16
14
*/
17
15
class Section extends Border
18
16
{
19
17
/**
20
18
* Page orientation
19
+ *
20
+ * @const string
21
21
*/
22
22
const ORIENTATION_PORTRAIT = 'portrait ' ;
23
23
const ORIENTATION_LANDSCAPE = 'landscape ' ;
24
+
24
25
/**
25
26
* Page default constants
27
+ *
28
+ * @const int|float
26
29
*/
27
30
const DEFAULT_WIDTH = 11906 ; // In twip
28
31
const DEFAULT_HEIGHT = 16838 ; // In twip
Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ public function setBorderSize($pValue = null)
187
187
/**
188
188
* Get TLRBVH Border Size
189
189
*
190
- * @return array
190
+ * @return int[]
191
191
*/
192
192
public function getBorderSize ()
193
193
{
@@ -218,7 +218,7 @@ public function setBorderColor($pValue = null)
218
218
/**
219
219
* Get TLRB Border Color
220
220
*
221
- * @return array
221
+ * @return string[]
222
222
*/
223
223
public function getBorderColor ()
224
224
{
@@ -408,7 +408,7 @@ public function setCellMargin($pValue = null)
408
408
/**
409
409
* Get cell margin
410
410
*
411
- * @return array
411
+ * @return int[]
412
412
*/
413
413
public function getCellMargin ()
414
414
{
Original file line number Diff line number Diff line change 10
10
namespace PhpOffice \PhpWord \Writer \ODText \Element ;
11
11
12
12
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 ;
15
13
16
14
/**
17
15
* TextRun element writer
Original file line number Diff line number Diff line change 10
10
namespace PhpOffice \PhpWord \Writer \Word2007 \Part ;
11
11
12
12
use PhpOffice \PhpWord \PhpWord ;
13
- use PhpOffice \PhpWord \Settings ;
14
13
use PhpOffice \PhpWord \Element \AbstractElement ;
15
14
use PhpOffice \PhpWord \Element \TextBreak ;
16
15
use PhpOffice \PhpWord \Exception \Exception ;
You can’t perform that action at this time.
0 commit comments