original_string: public static function finish()
  	{
  		if (\Config::get('caching', false))
  		{
  			\Finder::instance()->write_cache('FuelFileFinder');
  		}
  
  		if (static::$profiling and ! static::$is_cli and ! \Input::is_ajax())
  		{
  			// Grab the output buffer and flush it, we will rebuffer later
  			$output = ob_get_clean();
  
  			$headers = headers_list();
  			$show = true;
  
  			foreach ($headers as $header)
  			{
  				if (stripos($header, 'content-type') === 0 and stripos($header, 'text/html') === false)
  				{
  					$show = false;
  				}
  			}
  
  			if ($show)
  			{
  				\Profiler::mark('End of Fuel Execution');
  				if (preg_match("|</body>.*?</html>|is", $output))
  				{
  					$output  = preg_replace("|</body>.*?</html>|is", '', $output);
  					$output .= \Profiler::output();
  					$output .= '</body></html>';
  				}
  				else
  				{
  					$output .= \Profiler::output();
  				}
  			}
  			// Restart the output buffer and send the new output
  			ob_start(\Config::get('ob_callback'));
  			echo $output;
  		}
  	}
code: public static function finish()
  	{
  		if (\Config::get('caching', false))
  		{
  			\Finder::instance()->write_cache('FuelFileFinder');
  		}
  
  		if (static::$profiling and ! static::$is_cli and ! \Input::is_ajax())
  		{
  			// Grab the output buffer and flush it, we will rebuffer later
  			$output = ob_get_clean();
  
  			$headers = headers_list();
  			$show = true;
  
  			foreach ($headers as $header)
  			{
  				if (stripos($header, 'content-type') === 0 and stripos($header, 'text/html') === false)
  				{
  					$show = false;
  				}
  			}
  
  			if ($show)
  			{
  				\Profiler::mark('End of Fuel Execution');
  				if (preg_match("|</body>.*?</html>|is", $output))
  				{
  					$output  = preg_replace("|</body>.*?</html>|is", '', $output);
  					$output .= \Profiler::output();
  					$output .= '</body></html>';
  				}
  				else
  				{
  					$output .= \Profiler::output();
  				}
  			}
  			// Restart the output buffer and send the new output
  			ob_start(\Config::get('ob_callback'));
  			echo $output;
  		}
  	}
code_tokens: public static function finish ( ) { if ( \ Config :: get ( 'caching' , false ) ) { \ Finder :: instance ( ) -> write_cache ( 'FuelFileFinder' ) ; } if ( static :: $ profiling and ! static :: $ is_cli and ! \ Input :: is_ajax ( ) ) { // Grab the output buffer and flush it, we will rebuffer later $ output = ob_get_clean ( ) ; $ headers = headers_list ( ) ; $ show = true ; foreach ( $ headers as $ header ) { if ( stripos ( $ header , 'content-type' ) === 0 and stripos ( $ header , 'text/html' ) === false ) { $ show = false ; } } if ( $ show ) { \ Profiler :: mark ( 'End of Fuel Execution' ) ; if ( preg_match ( "|</body>.*?</html>|is" , $ output ) ) { $ output = preg_replace ( "|</body>.*?</html>|is" , '' , $ output ) ; $ output .= \ Profiler :: output ( ) ; $ output .= '</body></html>' ; } else { $ output .= \ Profiler :: output ( ) ; } } // Restart the output buffer and send the new output ob_start ( \ Config :: get ( 'ob_callback' ) ) ; echo $ output ; } }
docstring: Cleans up Fuel execution, ends the output buffering, and outputs the
  buffer contents.
  
  @access	public
  @return	void
docstring_tokens: Cleans up Fuel execution ends the output buffering and outputs the buffer contents .