Update ListItem.php

This commit is contained in:
eweso 2018-03-31 00:37:50 +02:00 committed by GitHub
parent a09e7151ac
commit 5741e47129
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -141,7 +141,7 @@ class ListItem extends AbstractStyle
/** /**
* Set numbering Id. Same numId means same list * Set numbering Id. Same numId means same list
* @param mixed * @param mixed $numInt
*/ */
public function setNumId($numInt) public function setNumId($numInt)
{ {
@ -158,12 +158,12 @@ class ListItem extends AbstractStyle
private function getListTypeStyle() private function getListTypeStyle()
{ {
// Check if legacy style already registered in global Style collection // Check if legacy style already registered in global Style collection
$numStyle = "PHPWordList_" . $this->listType; $numStyle = 'PHPWordListType' . $this->listType;
if ($this->numId) { if ($this->numId) {
$numStyle .= '_' . $this->numId; $numStyle .= 'NumId' . $this->numId;
} }
if (Style::getStyle($numStyle) !== null) { if (Style::getStyle($numStyle) !== null) {
$this->setNumStyle($numStyle); $this->setNumStyle($numStyle);