PHP Class GrumPHP\Formatter\PhpCsFixerFormatter

Inheritance: implements GrumPHP\Formatter\ProcessFormatterInterface
显示文件 Open project: phpro/grumphp Class Usage Examples

Public Methods

Method Description
format ( Process $process ) : string
formatErrorMessage ( array $messages, array $suggestions ) : string
formatSuggestion ( Process $process ) : string
resetCounter ( ) Resets the internal counter.

Private Methods

Method Description
formatFile ( array $file ) : string
formatJsonResponse ( array $json ) : string

Method Details

format() public method

public format ( Process $process ) : string
$process Symfony\Component\Process\Process
return string

formatErrorMessage() public method

public formatErrorMessage ( array $messages, array $suggestions ) : string
$messages array
$suggestions array
return string

formatSuggestion() public method

public formatSuggestion ( Process $process ) : string
$process Symfony\Component\Process\Process
return string

resetCounter() public method

Resets the internal counter.
public resetCounter ( )