PHP Class DataSift\Storyplayer\OutputLib\CodeFormatter

ファイルを表示 Open project: datasift/storyplayer Class Usage Examples

Public Methods

Method Description
formatCode ( $parsedCode )
indentBySpaces ( string $codeToPrint, integer $indentAmount ) : string
stripComments ( string $codeToPrint ) : string

Method Details

formatCode() public static method

public static formatCode ( $parsedCode )

indentBySpaces() public static method

public static indentBySpaces ( string $codeToPrint, integer $indentAmount ) : string
$codeToPrint string
$indentAmount integer
return string

stripComments() public static method

public static stripComments ( string $codeToPrint ) : string
$codeToPrint string
return string