PHP_CodeSniffer_Fixer::beginChangeset PHP Method

beginChangeset() public method

Start recording actions for a changeset.
public beginChangeset ( ) : void
return void
    public function beginChangeset()
    {
        if ($this->_inConflict === true) {
            return false;
        }
        if (PHP_CODESNIFFER_VERBOSITY > 1) {
            $bt = debug_backtrace();
            $sniff = $bt[1]['class'];
            $line = $bt[0]['line'];
            @ob_end_clean();
            echo "\t=> Changeset started by {$sniff} (line {$line})" . PHP_EOL;
            ob_start();
        }
        $this->_changeset = array();
        $this->_inChangeset = true;
    }