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)
|
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) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user