Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Instance ¶
type Instance struct {
// contains filtered or unexported fields
}
Instance is a wrapper around the 'phpcbf' cli for formatting code. This implementation preemptively starts an instance of the command, So that each call to Format does not need to wait for php and the phpcbf bootstrap. This does mean that there will always be a 'phpcbf' process instance running.
func (*Instance) FormatFileEdits ¶
TODO: should probably not be in this package.
func (*Instance) HasExecutable ¶
Click to show internal directories.
Click to hide internal directories.