메소드 |
설명 |
|
addContent ( integer $stackPtr, string $content ) : boolean |
Adds content to the end of a token's current content. |
|
addContentBefore ( integer $stackPtr, string $content ) : boolean |
Adds content to the start of a token's current content. |
|
addNewline ( integer $stackPtr ) : boolean |
Adds a newline to end of a token's content. |
|
addNewlineBefore ( integer $stackPtr ) : boolean |
Adds a newline to the start of a token's content. |
|
beginChangeset ( ) : void |
Start recording actions for a changeset. |
|
endChangeset ( ) : boolean |
Stop recording actions for a changeset, and apply logged changes. |
|
fixFile ( ) : boolean |
Attempt to fix the file by processing it until no fixes are made. |
|
generateDiff ( string $filePath = null, boolean $colors = true ) : string |
Generates a text diff of the original file and the new content. |
|
getContents ( ) : string |
Get the current content of the file, as a string. |
|
getFixCount ( ) : integer |
Get a count of fixes that have been performed on the file. |
|
getTokenContent ( integer $stackPtr ) : string |
Get the current fixed content of a token. |
|
replaceToken ( integer $stackPtr, string $content ) : boolean |
Replace the entire contents of a token. |
|
revertToken ( integer $stackPtr ) : boolean |
Reverts the previous fix made to a token. |
|
rollbackChangeset ( ) : void |
Stop recording actions for a changeset, and discard logged changes. |
|
startFile ( PHP_CodeSniffer_File $phpcsFile ) : void |
Starts fixing a new file. |
|
substrToken ( integer $stackPtr, integer $start, integer $length = null ) : boolean |
Replace the content of a token with a part of its current content. |
|