---
title: "format/control-flow/continuation-position"
pagination: false
---

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

<RuleId id="format/control-flow/continuation-position" />

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

## What it does

Control structure continuation keyword must be on the configured line.

## Configuration

```toml title="pun.toml"
[format.rules]
"control-flow/continuation-position" = 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 |
| --- | --- | --- | --- | --- |
| `position` | `enum` | `next-line`, `same-line` | `"same-line"` | `position` |

## Replaces

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

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