Searched refs:indent (Results 1 – 9 of 9) 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 = $this->getIndent(\substr($content, $newlinePos + 1), $tabWidth); 265 $indent = $this->getIndent($content, $tabWidth); [all …]
|
/PHP-Parser/test/code/prettyPrinter/ |
H A D | indent.test | 16 !!indent=" " 43 !!indent=" " 70 !!indent="\t"
|
/PHP-Parser/test/code/formatPreservation/ |
H A D | indent.test | 8 !!indent=" " 19 !!indent="\t" 32 !!indent="\t"
|
/PHP-Parser/lib/PhpParser/ |
H A D | PrettyPrinterAbstract.php | 110 private string $indent; variable in PhpParser\\PrettyPrinterAbstract 205 $this->indent = $indent = $options['indent'] ?? ' '; 206 if ($indent === "\t") { 209 } elseif ($indent === \str_repeat(' ', \strlen($indent))) { 211 $this->indentWidth = \strlen($indent); 245 protected function indent(): void { function in PhpParser\\PrettyPrinterAbstract 247 $this->nl .= $this->indent; 349 if ($indent) { 350 $this->indent(); 366 if ($indent) { [all …]
|
H A D | NodeDumper.php | 69 protected function dumpRecursive($node, bool $indent = true): void { argument 70 if ($indent) { 160 if ($indent) {
|
/PHP-Parser/test/PhpParser/ |
H A D | PrettyPrinterTest.php | 20 $indent = isset($options['indent']) ? json_decode($options['indent']) : null; 26 'indent' => $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
|
H A D | CHANGELOG.md | 13 * Added `indent` option to pretty printer, which can be used to specify the indentation to use
|
/PHP-Parser/doc/component/ |
H A D | Pretty_printing.markdown | 40 * `indent` (defaults to four spaces `" "`) can be set to any number of spaces or a single tab.
|
Completed in 22 milliseconds