refactor: use extracted method in original method
This commit is contained in:
parent
07e97c38cd
commit
623bd993d8
|
|
@ -265,17 +265,7 @@ class TemplateProcessor
|
||||||
*/
|
*/
|
||||||
public function getVariables()
|
public function getVariables()
|
||||||
{
|
{
|
||||||
$variables = $this->getVariablesForPart($this->tempDocumentMainPart);
|
return array_keys($this->getVariableCount());
|
||||||
|
|
||||||
foreach ($this->tempDocumentHeaders as $headerXML) {
|
|
||||||
$variables = array_merge($variables, $this->getVariablesForPart($headerXML));
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach ($this->tempDocumentFooters as $footerXML) {
|
|
||||||
$variables = array_merge($variables, $this->getVariablesForPart($footerXML));
|
|
||||||
}
|
|
||||||
|
|
||||||
return array_unique($variables);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue