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

Breadcrumb

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

function Fixer::addNewline

Adds a newline to end of a token's content.

Parameters

int $stackPtr The position of the token in the token stack.:

Return value

bool If the change was accepted.

File

vendor/squizlabs/php_codesniffer/src/Fixer.php, line 729

Class

Fixer

Namespace

PHP_CodeSniffer

Code

public function addNewline($stackPtr) {
    $current = $this->getTokenContent($stackPtr);
    return $this->replaceToken($stackPtr, $current . $this->currentFile->eolChar);
}

API Navigation

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