From c5e7a535e6515f7a9c67c5fe5d2854c92d8e9b48 Mon Sep 17 00:00:00 2001 From: Adrien Crivelli Date: Fri, 16 Sep 2022 14:24:22 +0200 Subject: [PATCH] Fix phpmd violation --- src/PhpWord/Element/TOC.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/PhpWord/Element/TOC.php b/src/PhpWord/Element/TOC.php index 0fbae57e..320c3e99 100644 --- a/src/PhpWord/Element/TOC.php +++ b/src/PhpWord/Element/TOC.php @@ -31,7 +31,7 @@ class TOC extends AbstractElement * * @var \PhpOffice\PhpWord\Style\TOC */ - private $TOCStyle; + private $tocStyle; /** * Font style. @@ -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)) { @@ -114,7 +114,7 @@ class TOC extends AbstractElement */ public function getStyleTOC() { - return $this->TOCStyle; + return $this->tocStyle; } /**