Home
last modified time | relevance | path

Searched refs:newline (Results 1 – 7 of 7) sorted by relevance

/PHP-Parser/lib/PhpParser/
H A DPrettyPrinterAbstract.php109 protected string $newline; variable in PhpParser\\PrettyPrinterAbstract
183 $this->newline = $options['newline'] ?? "\n";
184 if ($this->newline !== "\n" && $this->newline != "\r\n") {
199 $this->nl = $this->newline;
210 $this->nl = $this->newline . \str_repeat(' ', $level);
227 $this->nl = $this->newline . str_repeat(' ', $this->indentLevel);
265 return "<?php" . $this->newline . $this->newline;
268 $p = "<?php" . $this->newline . $this->newline . $this->prettyPrint($stmts);
303 $this->docStringEndToken . ';' . $this->newline,
304 ';' . $this->newline,
[all …]
/PHP-Parser/
H A DUPGRADE-1.0.md100 …* The `PrettyPrinterAbstract::pStmts()` method now emits a leading newline if the statement list i…
101 Custom pretty printers should remove the explicit newline before `pStmts()` calls.
H A DCHANGELOG.md117 * Added support for CRLF newlines in the pretty printer, using the new `newline` option.
446 * Fixed missing error for unterminated comment with trailing newline (#688).
981 preceding closing tag contained a newline. The pretty printer honors this attribute.
1087 * The protected `AbstractPrettyPrinter::pComments()` method no longer returns a trailing newline.
H A DUPGRADE-5.0.md397 * For PHP >= 7.3 (default), a newline is no longer forced after heredoc/nowdoc strings, as the requ…
/PHP-Parser/doc/component/
H A DPretty_printing.markdown39 * `newline` (defaults to `"\n"`) can be set to `"\r\n"` in order to produce Windows newlines.
50 * For PHP >= 7.3, a newline is no longer forced after heredoc/nowdoc strings, as the requirement
H A DLexer.markdown19 …mments use the PHP 8.0 representation that does not include a trailing newline. The newline will be
/PHP-Parser/lib/PhpParser/PrettyPrinter/
H A DStandard.php141 $nl = $shouldIdent ? $this->nl : $this->newline;
160 $nl = $this->phpVersion->supportsFlexibleHeredoc() ? $this->nl : $this->newline;
179 $nl = $this->phpVersion->supportsFlexibleHeredoc() ? $this->nl : $this->newline;
999 $newline = $node->getAttribute('hasLeadingNewline', true) ? $this->newline : '';
1000 return '?>' . $newline . $node->value . '<?php ';

Completed in 52 milliseconds