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

Breadcrumb

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

function PrettyPrinter::prettyPrintFile

Pretty prints a file of statements (includes the opening <?php tag if it is required).

Parameters

Node[] $stmts Array of statements:

Return value

string Pretty printed statements

1 method overrides PrettyPrinter::prettyPrintFile()
PrettyPrinterAbstract::prettyPrintFile in vendor/nikic/php-parser/lib/PhpParser/PrettyPrinterAbstract.php
Pretty prints a file of statements (includes the opening <?php tag if it is required).

File

vendor/nikic/php-parser/lib/PhpParser/PrettyPrinter.php, line 33

Class

PrettyPrinter

Namespace

PhpParser

Code

public function prettyPrintFile(array $stmts) : string;

API Navigation

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