Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Fixer.php

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

Fixer

Namespace

PHP_CodeSniffer

Code

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;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal