Skip to content

Commit 26e4794

Browse files
authored
Fix formatting
1 parent f7242e1 commit 26e4794

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PhpWord/TemplateProcessor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -610,8 +610,8 @@ public function setImageValue($search, $replace, $limit = self::MAXIMUM_REPLACEM
610610
// replace on each iteration, because in one tag we can have 2+ inline variables => before proceed next variable we need to change $partContent
611611
$partContent = $this->setValueForPart($wholeTag, $replaceXml, $partContent, $limit);
612612
}
613-
$i++;
614-
if($i >= $limit) {
613+
614+
if (++$i >= $limit) {
615615
break;
616616
}
617617
}

0 commit comments

Comments
 (0)