---
title: "format/whitespace/statement-indentation"
pagination: false
---

{/* Generated by scripts/gen-rule-docs.py. Edit mapping.toml, not this file. */}

<RuleId id="format/whitespace/statement-indentation" />

In the [`format-laravel`](/docs/rules/presets/format-laravel) and [`format-psr12`](/docs/rules/presets/format-psr12) presets. Safe fix.

## What it does

Each statement must be indented.

## Configuration

```toml title="pun.toml"
[format.rules]
"whitespace/statement-indentation" = true
```

To skip it in some files, add a [`@pun-ignore-file`](/docs/configuration/ignore-comments) comment.

## Options

| Name | Type | Allowed values | Default | Upstream name |
| --- | --- | --- | --- | --- |
| `stick-comment-to-next-continuous-control-statement` | `bool` | Any | `false` | `stick_comment_to_next_continuous_control_statement` |

## Replaces

- [`statement_indentation`](https://cs.symfony.com/doc/rules/whitespace/statement_indentation.html) (php-cs-fixer)

[More format/whitespace rules](/docs/rules/format/whitespace) · [Edit this page](https://github.com/shipfastlabs/pun/edit/main/crates/pun-config/rules/mapping.toml)
