aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_capture.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_capture.php')
-rw-r--r--vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_capture.php29
1 files changed, 17 insertions, 12 deletions
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_capture.php b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_capture.php
index 80ffa35b2..c9dca83d9 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_capture.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_capture.php
@@ -64,10 +64,12 @@ class Smarty_Internal_Runtime_Capture
if (!$this->isRegistered) {
$this->register($_template);
}
- $this->captureStack[] = array($buffer,
- $assign,
- $append);
- $this->captureCount ++;
+ $this->captureStack[] = array(
+ $buffer,
+ $assign,
+ $append
+ );
+ $this->captureCount++;
ob_start();
}
@@ -78,10 +80,14 @@ class Smarty_Internal_Runtime_Capture
*/
private function register(Smarty_Internal_Template $_template)
{
- $_template->startRenderCallbacks[] = array($this,
- 'startRender');
- $_template->endRenderCallbacks[] = array($this,
- 'endRender');
+ $_template->startRenderCallbacks[] = array(
+ $this,
+ 'startRender'
+ );
+ $_template->endRenderCallbacks[] = array(
+ $this,
+ 'endRender'
+ );
$this->startRender($_template);
$this->isRegistered = true;
}
@@ -108,7 +114,7 @@ class Smarty_Internal_Runtime_Capture
{
if ($this->captureCount) {
list($buffer, $assign, $append) = array_pop($this->captureStack);
- $this->captureCount --;
+ $this->captureCount--;
if (isset($assign)) {
$_template->assign($assign, ob_get_contents());
}
@@ -137,7 +143,7 @@ class Smarty_Internal_Runtime_Capture
* Return content of named capture buffer by key or as array
*
* @param \Smarty_Internal_Template $_template
- * @param string|null $name
+ * @param string|null $name
*
* @return string|string[]|null
*/
@@ -165,5 +171,4 @@ class Smarty_Internal_Runtime_Capture
$this->captureCount = array_pop($this->countStack);
}
}
-
-} \ No newline at end of file
+}