Get rid of duplicated code in TemplateProcessor.php
This commit is contained in:
parent
0beeb275fe
commit
f7cb73e8a6
@ -268,9 +268,7 @@ class TemplateProcessor
|
||||
*/
|
||||
public function cloneRow($search, $numberOfClones)
|
||||
{
|
||||
if ('${' !== substr($search, 0, 2) && '}' !== substr($search, -1)) {
|
||||
$search = '${' . $search . '}';
|
||||
}
|
||||
$search = static::ensureMacroCompleted($search);
|
||||
|
||||
$tagPos = strpos($this->tempDocumentMainPart, $search);
|
||||
if (!$tagPos) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user