Method | Description | |
---|---|---|
__construct ( array $files ) | ||
allOf ( array $patterns ) | This method build up the predicator. | |
always ( ) | ||
anyOf ( array $patterns ) | ||
apply ( PhpBrew\Buildable $build, CLIFramework\Logger $logger ) | ||
backup ( PhpBrew\Buildable $build, CLIFramework\Logger $logger ) | ||
files ( $files ) | ||
replaces ( $pattern, $replacement ) |
Method | Description | |
---|---|---|
applyLines ( array $lines, &$patched ) | ||
applyTextContent ( string $content, &$patched ) | This method can only be used for text format files. | |
backupFile ( $path ) |
public apply ( PhpBrew\Buildable $build, CLIFramework\Logger $logger ) | ||
$build | PhpBrew\Buildable | |
$logger | CLIFramework\Logger |
protected applyTextContent ( string $content, &$patched ) | ||
$content | string | the target of the text content. |
public backup ( PhpBrew\Buildable $build, CLIFramework\Logger $logger ) | ||
$build | PhpBrew\Buildable | |
$logger | CLIFramework\Logger |