Home
last modified time | relevance | path

Searched refs:indent (Results 1 – 9 of 9) sorted by relevance

/PHP-Parser/lib/PhpParser/Internal/
H A DTokenStream.php219 * @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 Dindent.test16 !!indent=" "
43 !!indent=" "
70 !!indent="\t"
/PHP-Parser/test/code/formatPreservation/
H A Dindent.test8 !!indent=" "
19 !!indent="\t"
32 !!indent="\t"
/PHP-Parser/lib/PhpParser/
H A DPrettyPrinterAbstract.php110 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 DNodeDumper.php69 protected function dumpRecursive($node, bool $indent = true): void { argument
70 if ($indent) {
160 if ($indent) {
/PHP-Parser/test/PhpParser/
H A DPrettyPrinterTest.php20 $indent = isset($options['indent']) ? json_decode($options['indent']) : null;
26 'indent' => $indent,
/PHP-Parser/
H A DUPGRADE-4.0.md60 `pNoindent()`. Now no-indent is the default and newlines that require indentation should use
H A DCHANGELOG.md6 * Added `indent` option to pretty printer, which can be used to specify the indentation to use
/PHP-Parser/doc/component/
H A DPretty_printing.markdown40 * `indent` (defaults to four spaces `" "`) can be set to any number of spaces or a single tab.

Completed in 21 milliseconds