Searched refs:indent (Results 1 – 4 of 4) sorted by relevance
/PHP-Parser/lib/PhpParser/Internal/ |
H A D | TokenStream.php | 219 * @param int $indent By how much the code should be indented (can be negative as well) 223 public function getTokenCode(int $from, int $to, int $indent): string { argument 234 if ($indent < 0) { 235 $result .= str_replace("\n" . str_repeat(" ", -$indent), "\n", $text); 236 } elseif ($indent > 0) { 237 $result .= str_replace("\n", "\n" . str_repeat(" ", $indent), $text); 253 $indent = 0; 255 $indentMap[] = $indent; 261 $indent = \strlen($content) - $newlinePos - 1; 265 $indent = \strlen($content); [all …]
|
/PHP-Parser/lib/PhpParser/ |
H A D | NodeDumper.php | 69 protected function dumpRecursive($node, bool $indent = true): void { argument 70 if ($indent) { 160 if ($indent) {
|
H A D | PrettyPrinterAbstract.php | 216 protected function indent(): void { function in PhpParser\\PrettyPrinterAbstract 316 * @param bool $indent Whether to indent the printed nodes 320 protected function pStmts(array $nodes, bool $indent = true): string { argument 321 if ($indent) { 322 $this->indent(); 338 if ($indent) { 472 $this->indent();
|
/PHP-Parser/ |
H A D | UPGRADE-4.0.md | 60 `pNoindent()`. Now no-indent is the default and newlines that require indentation should use
|
Completed in 21 milliseconds