Skip to content

Commit

Permalink
Fix phpmd violation
Browse files Browse the repository at this point in the history
  • Loading branch information
PowerKiKi committed Sep 16, 2022
1 parent a49618f commit c5e7a53
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/PhpWord/Element/TOC.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class TOC extends AbstractElement
*
* @var \PhpOffice\PhpWord\Style\TOC
*/
private $TOCStyle;
private $tocStyle;

/**
* Font style.
Expand Down Expand Up @@ -64,10 +64,10 @@ class TOC extends AbstractElement
*/
public function __construct($fontStyle = null, $tocStyle = null, $minDepth = 1, $maxDepth = 9)
{
$this->TOCStyle = new TOCStyle();
$this->tocStyle = new TOCStyle();

if (null !== $tocStyle && is_array($tocStyle)) {
$this->TOCStyle->setStyleByArray($tocStyle);
$this->tocStyle->setStyleByArray($tocStyle);
}

if (null !== $fontStyle && is_array($fontStyle)) {
Expand Down Expand Up @@ -114,7 +114,7 @@ public function getTitles()
*/
public function getStyleTOC()
{
return $this->TOCStyle;
return $this->tocStyle;
}

/**
Expand Down

0 comments on commit c5e7a53

Please sign in to comment.