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
Namespace
PHP_CodeSnifferCode
public function getContents() {
$contents = implode($this->tokens);
return $contents;
}