---
title: "format/phpdoc/line-span"
pagination: false
---

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

<RuleId id="format/phpdoc/line-span" />

Not in any preset. Safe fix.

## What it does

Changes doc blocks from single to multi line, or reversed.

## Configuration

```toml title="pun.toml"
[format.rules]
"phpdoc/line-span" = 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 |
| --- | --- | --- | --- | --- |
| `case` | `enum` | `single`, `multi` | `"multi"` | `case` |
| `class` | `enum` | `single`, `multi` | `"multi"` | `class` |
| `const` | `enum` | `single`, `multi` | `"multi"` | `const` |
| `function` | `enum` | `single`, `multi` | `"multi"` | `function` |
| `method` | `enum` | `single`, `multi` | `"multi"` | `method` |
| `other` | `enum` | `single`, `multi` | `"ignore"` | `other` |
| `property` | `enum` | `single`, `multi` | `"multi"` | `property` |
| `trait-import` | `enum` | `single`, `multi` | `"ignore"` | `trait_import` |

## Replaces

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

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