---
title: "format/phpdoc/trim-blank-lines"
pagination: false
---

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

<RuleId id="format/phpdoc/trim-blank-lines" />

Not in any preset. Safe fix.

## What it does

Removes extra blank lines after summary and after description in PHPDoc.

## Configuration

```toml title="pun.toml"
[format.rules]
"phpdoc/trim-blank-lines" = true
```

To skip it in some files, add a [`@pun-ignore-file`](/docs/configuration/ignore-comments) comment.

## Replaces

- [`phpdoc_trim_consecutive_blank_line_separation`](https://cs.symfony.com/doc/rules/phpdoc/phpdoc_trim_consecutive_blank_line_separation.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)
