---
title: "format/arrays/no-space-around-offset"
pagination: false
---

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

<RuleId id="format/arrays/no-space-around-offset" />

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

## What it does

There MUST NOT be spaces around offset braces.

## Configuration

```toml title="pun.toml"
[format.rules]
"arrays/no-space-around-offset" = 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 |
| --- | --- | --- | --- | --- |
| `positions` | `list` | `inside`, `outside` | `["inside", "outside"]` | `positions` |

## Replaces

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

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