Remove unused internal compiler arg.

We stopped passing it in 11ad87ae but missed the cleanup.
This commit is contained in:
Justin Hileman
2017-07-02 22:55:12 -07:00
parent 324f1db963
commit 2b76cbeb66
+1 -6
View File
@@ -365,11 +365,10 @@ class Mustache_Compiler
* @param string $otag Current Mustache opening tag
* @param string $ctag Current Mustache closing tag
* @param int $level
* @param bool $arg (default: false)
*
* @return string Generated section PHP source code
*/
private function section($nodes, $id, $filters, $start, $end, $otag, $ctag, $level, $arg = false)
private function section($nodes, $id, $filters, $start, $end, $otag, $ctag, $level)
{
$source = var_export(substr($this->source, $start, $end - $start), true);
$callable = $this->getCallable();
@@ -389,16 +388,12 @@ class Mustache_Compiler
$this->sections[$key] = sprintf($this->prepare(self::SECTION), $key, $callable, $source, $helper, $delims, $this->walk($nodes, 2));
}
if ($arg === true) {
return $key;
} else {
$method = $this->getFindMethod($id);
$id = var_export($id, true);
$filters = $this->getFilters($filters, $level);
return sprintf($this->prepare(self::SECTION_CALL, $level), $id, $method, $id, $filters, $key);
}
}
const INVERTED_SECTION = '
// %s inverted section