src/utils/Code.php
public static function section($path, $start = 0, $end = 0, $undent = false)
	{
		$format = self::getExtension($path);
		$text   = file_get_contents($path);
		if ($start !== 0 || $end !== 0)
		{
			$text = self::lines($text, $start, $end);
			if ($undent)
			{
				$text = self::undent($text);
			}
		}
		return self::output($text, $format);
	}
public static function section($path, $start = 0, $end = 0, $undent = false)
	{
		$format = self::getExtension($path);
		$text   = file_get_contents($path);
		if ($start !== 0 || $end !== 0)
		{
			$text = self::lines($text, $start, $end);
			if ($undent)
			{
				$text = self::undent($text);
			}
		}
		return self::output($text, $format);
	}
public static function section ( $ path , $ start = 0 , $ end = 0 , $ undent = false ) { $ format = self :: getExtension ( $ path ) ; $ text = file_get_contents ( $ path ) ; if ( $ start !== 0 || $ end !== 0 ) { $ text = self :: lines ( $ text , $ start , $ end ) ; if ( $ undent ) { $ text = self :: undent ( $ text ) ; } } return self :: output ( $ text , $ format ) ; }
Output a section of a single file

@param   string  $path
@param   int     $start
@param   int     $end
@param   bool    $undent
@return  string
Output a section of a single file