---
title: "format/operators/concat-spacing"
pagination: false
---

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

<RuleId id="format/operators/concat-spacing" />

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

## What it does

Concatenation should be spaced according to configuration.

## Configuration

```toml title="pun.toml"
[format.rules]
"operators/concat-spacing" = 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 |
| --- | --- | --- | --- | --- |
| `spacing` | `enum` | `one`, `none` | `"none"` | `spacing` |

## Replaces

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

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