Searched refs:newline (Results 1 – 7 of 7) sorted by relevance
/PHP-Parser/lib/PhpParser/ |
H A D | PrettyPrinterAbstract.php | 119 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 D | UPGRADE-1.0.md | 100 …* 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 D | CHANGELOG.md | 169 * 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 D | UPGRADE-5.0.md | 397 * For PHP >= 7.3 (default), a newline is no longer forced after heredoc/nowdoc strings, as the requ…
|
/PHP-Parser/doc/component/ |
H A D | Pretty_printing.markdown | 39 * `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 D | Lexer.markdown | 19 …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 D | Standard.php | 146 $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 28 milliseconds