src/utils/Code.php
public static function undent($text)
	{
		preg_match('/^\s+/', $text, $matches);
		list ($indent) = $matches;
		if ($indent)
		{
			$text = preg_replace("/^$indent/m", '', $text);
		}
		return $text;
	}
public static function undent($text)
	{
		preg_match('/^\s+/', $text, $matches);
		list ($indent) = $matches;
		if ($indent)
		{
			$text = preg_replace("/^$indent/m", '', $text);
		}
		return $text;
	}
public static function undent ( $ text ) { preg_match ( '/^\s+/' , $ text , $ matches ) ; list ( $ indent ) = $ matches ; if ( $ indent ) { $ text = preg_replace ( "/^$indent/m" , '' , $ text ) ; } return $ text ; }
Remove any indent from a block of text, based on the first line

@param   string  $text
@return  string
Remove any indent from a block of text based on the first line