src/PNDP/NixGenerator.php
public static function generateIndentation($indentLevel, $format)
	{
		if($format)
		{
			$expr = "";
			for($i = 0; $i < $indentLevel; $i++)
				$expr .= "  ";

			return $expr;
		}
		else
			return "";
	}
public static function generateIndentation($indentLevel, $format)
	{
		if($format)
		{
			$expr = "";
			for($i = 0; $i < $indentLevel; $i++)
				$expr .= "  ";

			return $expr;
		}
		else
			return "";
	}
public static function generateIndentation ( $ indentLevel , $ format ) { if ( $ format ) { $ expr = "" ; for ( $ i = 0 ; $ i < $ indentLevel ; $ i ++ ) $ expr .= "  " ; return $ expr ; } else return "" ; }
Generates indentation to format the resulting output expression more nicely.

@param int $indentLevel The indentation level of the resulting sub expression
@param bool $format Indicates whether to nicely format to expression (i.e. generating whitespaces) or not
@return string A string with the amount of whitespaces corresponding to the indent level
Generates indentation to format the resulting output expression more nicely .