Get rid of duplicated code in TemplateProcessor.php

This commit is contained in:
Dmitry Lukashin 2017-10-19 17:33:46 +03:00 committed by GitHub
parent 0beeb275fe
commit f7cb73e8a6

View File

@ -268,9 +268,7 @@ class TemplateProcessor
*/ */
public function cloneRow($search, $numberOfClones) public function cloneRow($search, $numberOfClones)
{ {
if ('${' !== substr($search, 0, 2) && '}' !== substr($search, -1)) { $search = static::ensureMacroCompleted($search);
$search = '${' . $search . '}';
}
$tagPos = strpos($this->tempDocumentMainPart, $search); $tagPos = strpos($this->tempDocumentMainPart, $search);
if (!$tagPos) { if (!$tagPos) {