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

Breadcrumb

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

function Fixer::getContents

Get the current content of the file, as a string.

Return value

string

2 calls to Fixer::getContents()
Fixer::fixFile in vendor/squizlabs/php_codesniffer/src/Fixer.php
Attempt to fix the file by processing it until no fixes are made.
Fixer::generateDiff in vendor/squizlabs/php_codesniffer/src/Fixer.php
Generates a text diff of the original file and the new content.

File

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

Class

Fixer

Namespace

PHP_CodeSniffer

Code

public function getContents() {
    $contents = implode($this->tokens);
    return $contents;
}
RSS feed
Powered by Drupal