From 3a4c0c72bf157cd912752a2893d10e37cdacd5aa Mon Sep 17 00:00:00 2001 From: Micah Wood Date: Fri, 10 Jan 2014 10:34:01 -0500 Subject: [PATCH] Simplify output buffering code No need to use both ob_get_contents() and ob_end_clean() when you can just use ob_get_clean(). --- flight/template/View.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/flight/template/View.php b/flight/template/View.php index a9d4052..152ce75 100644 --- a/flight/template/View.php +++ b/flight/template/View.php @@ -122,9 +122,7 @@ class View { ob_start(); $this->render($file, $data); - $output = ob_get_contents(); - - ob_end_clean(); + $output = ob_get_clean(); return $output; }