Skip to content

Commit c5e7a53

Browse files
committed
Fix phpmd violation
1 parent a49618f commit c5e7a53

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/PhpWord/Element/TOC.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class TOC extends AbstractElement
3131
*
3232
* @var \PhpOffice\PhpWord\Style\TOC
3333
*/
34-
private $TOCStyle;
34+
private $tocStyle;
3535

3636
/**
3737
* Font style.
@@ -64,10 +64,10 @@ class TOC extends AbstractElement
6464
*/
6565
public function __construct($fontStyle = null, $tocStyle = null, $minDepth = 1, $maxDepth = 9)
6666
{
67-
$this->TOCStyle = new TOCStyle();
67+
$this->tocStyle = new TOCStyle();
6868

6969
if (null !== $tocStyle && is_array($tocStyle)) {
70-
$this->TOCStyle->setStyleByArray($tocStyle);
70+
$this->tocStyle->setStyleByArray($tocStyle);
7171
}
7272

7373
if (null !== $fontStyle && is_array($fontStyle)) {
@@ -114,7 +114,7 @@ public function getTitles()
114114
*/
115115
public function getStyleTOC()
116116
{
117-
return $this->TOCStyle;
117+
return $this->tocStyle;
118118
}
119119

120120
/**

0 commit comments

Comments
 (0)