PHP Class PhpGitHooks\Module\PhpCs\Infrastructure\Tool\PhpCsToolProcessor

Inheritance: implements PhpGitHooks\Module\PhpCs\Model\PhpCsToolProcessorInterface
显示文件 Open project: bruli/php-git-hooks

Public Methods

Method Description
__construct ( ToolPathFinder $toolPathFinder ) PhpCsToolProcessor constructor.
process ( string $file, string $standard ) : string

Private Methods

Method Description
execute ( string $file, string $standard ) : Process
setErrors ( Process $process ) : string

Method Details

__construct() public method

PhpCsToolProcessor constructor.
public __construct ( ToolPathFinder $toolPathFinder )
$toolPathFinder PhpGitHooks\Infrastructure\Tool\ToolPathFinder

process() public method

public process ( string $file, string $standard ) : string
$file string
$standard string
return string