Skip to content

Commit eb5f82b

Browse files
committed
phpcs improved
1 parent 2bb2190 commit eb5f82b

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
@@ -893,7 +893,7 @@ public function cloneRowAndSetValues($search, $values): void
893893
*
894894
* @return null|string
895895
*/
896-
public function cloneBlock($blockname, $clones = 1, $replace = true, $indexVariables = false, $variableReplacements = null, int $limit = MAXIMUM_REPLACEMENTS_DEFAULT)
896+
public function cloneBlock($blockname, $clones = 1, $replace = true, $indexVariables = false, $variableReplacements = null, int $limit = self::MAXIMUM_REPLACEMENTS_DEFAULT)
897897
{
898898
$xmlBlock = null;
899899
$matches = [];
@@ -921,7 +921,7 @@ public function cloneBlock($blockname, $clones = 1, $replace = true, $indexVaria
921921
}
922922

923923
if ($replace) {
924-
if(self::MAXIMUM_REPLACEMENTS_DEFAULT === $limit) {
924+
if (self::MAXIMUM_REPLACEMENTS_DEFAULT === $limit) {
925925
$this->tempDocumentMainPart = str_replace(
926926
$matches[2] . $matches[3] . $matches[4],
927927
implode('', $cloned),

0 commit comments

Comments
 (0)