@@ -39,7 +39,7 @@ class Style
3939 * Add paragraph style
4040 *
4141 * @param string $styleName
42- * @param array $styles
42+ * @param array|\PhpOffice\PhpWord\Style\AbstractStyle $styles
4343 * @return \PhpOffice\PhpWord\Style\Paragraph
4444 */
4545 public static function addParagraphStyle ($ styleName , $ styles )
@@ -51,8 +51,8 @@ public static function addParagraphStyle($styleName, $styles)
5151 * Add font style
5252 *
5353 * @param string $styleName
54- * @param array $fontStyle
55- * @param array $paragraphStyle
54+ * @param array|\PhpOffice\PhpWord\Style\AbstractStyle $fontStyle
55+ * @param array|\PhpOffice\PhpWord\Style\AbstractStyle $paragraphStyle
5656 * @return \PhpOffice\PhpWord\Style\Font
5757 */
5858 public static function addFontStyle ($ styleName , $ fontStyle , $ paragraphStyle = null )
@@ -64,7 +64,7 @@ public static function addFontStyle($styleName, $fontStyle, $paragraphStyle = nu
6464 * Add link style
6565 *
6666 * @param string $styleName
67- * @param array $styles
67+ * @param array|\PhpOffice\PhpWord\Style\AbstractStyle $styles
6868 * @return \PhpOffice\PhpWord\Style\Font
6969 */
7070 public static function addLinkStyle ($ styleName , $ styles )
@@ -76,7 +76,7 @@ public static function addLinkStyle($styleName, $styles)
7676 * Add numbering style
7777 *
7878 * @param string $styleName
79- * @param array $styleValues
79+ * @param array|\PhpOffice\PhpWord\Style\AbstractStyle $styleValues
8080 * @return \PhpOffice\PhpWord\Style\Numbering
8181 * @since 0.10.0
8282 */
@@ -88,14 +88,14 @@ public static function addNumberingStyle($styleName, $styleValues)
8888 /**
8989 * Add title style
9090 *
91- * @param int $depth
92- * @param array $fontStyle
93- * @param array $paragraphStyle
91+ * @param int|null $depth Provide null to set title font
92+ * @param array|\PhpOffice\PhpWord\Style\AbstractStyle $fontStyle
93+ * @param array|\PhpOffice\PhpWord\Style\AbstractStyle $paragraphStyle
9494 * @return \PhpOffice\PhpWord\Style\Font
9595 */
9696 public static function addTitleStyle ($ depth , $ fontStyle , $ paragraphStyle = null )
9797 {
98- if ($ depth == null ) {
98+ if (empty ( $ depth) ) {
9999 $ styleName = 'Title ' ;
100100 } else {
101101 $ styleName = "Heading_ {$ depth }" ;
@@ -141,7 +141,7 @@ public static function resetStyles()
141141 /**
142142 * Set default paragraph style
143143 *
144- * @param array $styles Paragraph style definition
144+ * @param array|\PhpOffice\PhpWord\Style\AbstractStyle $styles Paragraph style definition
145145 * @return \PhpOffice\PhpWord\Style\Paragraph
146146 */
147147 public static function setDefaultParagraphStyle ($ styles )
0 commit comments