function Fixer::beginChangeset
Start recording actions for a changeset.
Return value
void|false
1 call to Fixer::beginChangeset()
- Fixer::changeCodeBlockIndent in vendor/
squizlabs/ php_codesniffer/ src/ Fixer.php - Adjust the indent of a code block.
File
-
vendor/
squizlabs/ php_codesniffer/ src/ Fixer.php, line 394
Class
Namespace
PHP_CodeSnifferCode
public function beginChangeset() {
if ($this->inConflict === true) {
return false;
}
if (PHP_CODESNIFFER_VERBOSITY > 1) {
$bt = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
if ($bt[1]['class'] === __CLASS__) {
$sniff = 'Fixer';
}
else {
$sniff = Common::getSniffCode($bt[1]['class']);
}
$line = $bt[0]['line'];
@ob_end_clean();
echo "\t=> Changeset started by {$sniff}:{$line}" . PHP_EOL;
ob_start();
}
$this->changeset = [];
$this->inChangeset = true;
}