---
title: "format/statements/space-after-semicolon"
pagination: false
---

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

<RuleId id="format/statements/space-after-semicolon" />

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

## What it does

Fix whitespace after a semicolon.

## Configuration

```toml title="pun.toml"
[format.rules]
"statements/space-after-semicolon" = 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 |
| --- | --- | --- | --- | --- |
| `remove-in-empty-for-expressions` | `bool` | Any | `false` | `remove_in_empty_for_expressions` |

## Replaces

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

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