Home
last modified time | relevance | path

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

/PHP-Parser/lib/PhpParser/
H A DPrettyPrinterAbstract.php119 protected string $newline; variable in PhpParser\\PrettyPrinterAbstract
195 $this->newline = $options['newline'] ?? "\n";
196 if ($this->newline !== "\n" && $this->newline != "\r\n") {
222 $this->nl = $this->newline;
238 $this->nl = $this->newline . \str_repeat(' ', $level);
293 return "<?php" . $this->newline . $this->newline;
296 $p = "<?php" . $this->newline . $this->newline . $this->prettyPrint($stmts);
331 $this->docStringEndToken . ';' . $this->newline,
332 ';' . $this->newline,
334 $str = str_replace($this->docStringEndToken, $this->newline, $str);
[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.md169 * Added support for CRLF newlines in the pretty printer, using the new `newline` option.
498 * Fixed missing error for unterminated comment with trailing newline (#688).
1033 preceding closing tag contained a newline. The pretty printer honors this attribute.
1139 * 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.
51 * 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.php146 $nl = $shouldIdent ? $this->nl : $this->newline;
165 $nl = $this->phpVersion->supportsFlexibleHeredoc() ? $this->nl : $this->newline;
184 $nl = $this->phpVersion->supportsFlexibleHeredoc() ? $this->nl : $this->newline;
1014 $newline = $node->getAttribute('hasLeadingNewline', true) ? $this->newline : '';
1015 return '?>' . $newline . $node->value . '<?php ';

Completed in 19 milliseconds