Skip to content

Commit 94b74e5

Browse files
committed
refactor: rename dockblock references to docheader
1 parent efef8cc commit 94b74e5

14 files changed

Lines changed: 44 additions & 41 deletions

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313

1414
### Changed
1515

16-
- Align the standards pipeline to invoke PHPDoc checks via the `php-cs-fixer` command name/alias and route standards cache to `.dev-tools/cache/php-cs-fixer`, preserving backwards compatibility for existing `dockblock`-style entry points.
17-
- Rename the command entry point from `standards:phpdoc` to `standards:dockblock` and keep both `dockblock` and `php-cs-fixer` aliases for compatibility (`standards:phpdoc` is intentionally not kept as a command name).
16+
- Align the standards pipeline to invoke PHPDoc checks via the `php-cs-fixer` command name/alias and route standards cache to `.dev-tools/cache/php-cs-fixer`, preserving backwards compatibility for existing `docheader`-style entry points.
17+
- Rename the command entry point from `standards:phpdoc` to `standards:docheader` and keep both `docheader` and `php-cs-fixer` aliases for compatibility (`standards:phpdoc` is intentionally not kept as a command name).
1818

1919
## [1.22.3] - 2026-04-25
2020

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ composer code-style
107107
composer refactor
108108

109109
# Check and fix PHPDoc comments
110-
composer phpdoc
110+
composer docheader
111111

112112
# Generate HTML API documentation using phpDocumentor
113113
composer docs

docs/advanced/rector-and-phpdoc.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
Rector and PHPDoc Automation
2-
============================
1+
Rector and Docheader Automation
2+
===============================
33

44
The package uses two different Rector entry points, and that difference matters
55
when you are trying to understand why a rule did or did not run.
66

7-
``refactor`` Versus ``phpdoc``
7+
``refactor`` Versus ``docheader``
88
------------------------------
99

1010
- ``refactor`` uses the full ``rector.php`` file.
11-
- ``phpdoc`` runs PHP-CS-Fixer first and then executes Rector with
11+
- ``docheader`` runs PHP-CS-Fixer first and then executes Rector with
1212
``--only \FastForward\DevTools\Rector\AddMissingMethodPhpDocRector``.
1313

1414
Rules Shipped by the Package
@@ -19,7 +19,7 @@ Rules Shipped by the Package
1919

2020
* - Rule
2121
- Enabled in packaged ``rector.php``
22-
- Used directly by ``phpdoc``
22+
- Used directly by ``docheader``
2323
- Purpose
2424
* - ``FastForward\DevTools\Rector\AddMissingMethodPhpDocRector``
2525
- Yes
@@ -45,7 +45,7 @@ rules when ``thecodingmachine/safe`` is installed.
4545
Why ``.docheader`` Appears Automatically
4646
----------------------------------------
4747

48-
The ``phpdoc`` command creates ``.docheader`` in the consumer root when it is
48+
The ``docheader`` command creates ``.docheader`` in the consumer root when it is
4949
missing. The template comes from the packaged file and the package name is
5050
rewritten to match the current project whenever Composer metadata is
5151
available.

docs/api/commands.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ subprocess execution is needed.
3737
- ``refactor``
3838
- Runs Rector with local or packaged configuration.
3939
* - ``FastForward\DevTools\Console\Command\PhpDocCommand``
40-
- ``phpdoc``
41-
- Runs PHP-CS-Fixer and a focused Rector PHPDoc pass.
40+
- ``standards:docheader``
41+
- Runs PHP-CS-Fixer and a focused Rector PHPDoc pass. Supported aliases:
42+
``docheader`` and ``php-cs-fixer``.
4243
* - ``FastForward\DevTools\Console\Command\CodeStyleCommand``
4344
- ``code-style``
4445
- Runs Composer Normalize and ECS.

docs/commands/phpdoc.rst

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
phpdoc
2-
======
1+
docheader
2+
=========
33

44
Checks and fixes PHPDoc comments.
55

66
Description
77
-----------
88

9-
The ``phpdoc`` command coordinates PHPDoc checking and fixing using:
9+
The ``docheader`` command coordinates PHPDoc checking and fixing using:
10+
(alias ``docheader`` and ``php-cs-fixer``)
1011

1112
- PHP-CS-Fixer - fixes PHPDoc formatting
1213
- Rector with ``AddMissingMethodPhpDocRector`` - adds missing method PHPDoc
@@ -18,10 +19,11 @@ Usage
1819

1920
.. code-block:: bash
2021
21-
composer phpdoc
22-
composer phpdoc [options]
23-
composer dev-tools phpdoc -- [options]
24-
vendor/bin/dev-tools phpdoc [options]
22+
composer docheader
23+
composer php-cs-fixer
24+
composer docheader [options]
25+
composer dev-tools docheader -- [options]
26+
vendor/bin/dev-tools docheader [options]
2527
2628
Arguments
2729
---------
@@ -61,25 +63,25 @@ Check PHPDocs (dry-run):
6163

6264
.. code-block:: bash
6365
64-
composer phpdoc
66+
composer docheader
6567
6668
Fix PHPDocs automatically:
6769

6870
.. code-block:: bash
6971
70-
composer phpdoc --fix
72+
composer docheader --fix
7173
7274
Check specific directory:
7375

7476
.. code-block:: bash
7577
76-
composer phpdoc ./src
78+
composer docheader ./src
7779
7880
Check without cache:
7981

8082
.. code-block:: bash
8183
82-
composer phpdoc --no-cache
84+
composer docheader --no-cache
8385
8486
Exit Codes
8587
---------

docs/commands/standards.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Description
99
The ``standards`` command runs the full quality pipeline:
1010

1111
1. ``refactor`` - Rector code refactoring
12-
2. ``phpdoc`` - PHPDoc checks and fixes
12+
2. ``docheader`` - PHPDoc checks and fixes
1313
3. ``code-style`` - Code style checking
1414
4. ``reports`` - Documentation and test reports
1515

@@ -68,10 +68,10 @@ Behavior
6868
- Cache stays enabled by default for nested cache-aware phases; omit both flags
6969
to keep the command default, pass ``--cache`` to force it on, and pass
7070
``--no-cache`` to force it off.
71-
- The explicit cache intent is propagated to the nested ``phpdoc`` and
71+
- The explicit cache intent is propagated to the nested ``docheader`` and
7272
``reports`` phases. ``refactor`` and ``code-style`` do not consume this
7373
contract.
74-
- When ``--cache-dir`` is provided, ``phpdoc`` and ``reports`` receive nested
74+
- When ``--cache-dir`` is provided, ``docheader`` and ``reports`` receive nested
7575
cache directories under that base path. When it is omitted, each nested tool
7676
keeps its own default cache directory.
7777
- Progress output is disabled by default across nested phases; use

docs/configuration/overriding-defaults.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Commands and Their Configuration Files
3838
* - ``dependencies``
3939
- ``composer-dependency-analyser.php``
4040
- Falls back to the packaged Composer Dependency Analyser configuration.
41-
* - ``phpdoc``
41+
* - ``docheader``
4242
- ``.php-cs-fixer.dist.php`` and ``rector.php``
4343
- Falls back to the packaged files; ``.docheader`` is created locally
4444
when missing.
@@ -62,7 +62,7 @@ A Practical Example
6262
-------------------
6363

6464
To customize Rector for one library, create ``rector.php`` in the consumer
65-
project root. The ``refactor`` command and the Rector phase inside ``phpdoc``
65+
project root. The ``refactor`` command and the Rector phase inside ``docheader``
6666
will use that file instead of the packaged default.
6767

6868
Extending ECS Configuration

docs/configuration/tooling-defaults.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ create them on day one.
1414
- ``code-style``
1515
- Fallback ECS configuration.
1616
* - ``rector.php``
17-
- ``refactor`` and ``phpdoc``
17+
- ``refactor`` and ``docheader``
1818
- Fallback Rector configuration.
1919
* - ``phpunit.xml``
2020
- ``tests``
2121
- Registers ``FastForward\DevTools\PhpUnit\Runner\Extension\DevToolsExtension``.
2222
* - ``.php-cs-fixer.dist.php``
23-
- ``phpdoc``
23+
- ``docheader``
2424
- Controls header and PHPDoc fixer behavior.
2525
* - ``.docheader``
26-
- ``phpdoc``
26+
- ``docheader``
2727
- Created into the consumer root on demand when missing.
2828
* - ``.editorconfig``
2929
- ``dev-tools:sync``

docs/running/specialized-commands.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,15 +179,15 @@ Important details:
179179
- ``--json`` and ``--pretty-json`` forward ``--output-format json`` to Rector
180180
and disable its progress bar.
181181

182-
``phpdoc``
183-
----------
182+
``docheader`` (alias: ``php-cs-fixer``)
183+
---------------------------------------
184184

185185
Coordinates PHP-CS-Fixer and a focused Rector pass for missing method PHPDoc.
186186

187187
.. code-block:: bash
188188
189-
composer phpdoc
190-
composer phpdoc --fix
189+
composer docheader
190+
composer php-cs-fixer --fix
191191
192192
Important details:
193193

docs/running/unified-command.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Execution Order
1414
``standards`` runs these commands in sequence:
1515

1616
1. ``refactor``
17-
2. ``phpdoc``
17+
2. ``docheader``
1818
3. ``code-style``
1919
4. ``reports``
2020

@@ -31,7 +31,7 @@ To allow the tools to modify files, use one of the following entry points:
3131
composer dev-tools:fix
3232
vendor/bin/dev-tools --fix
3333
34-
The flag mainly affects ``refactor``, ``phpdoc``, and ``code-style``. The
34+
The flag mainly affects ``refactor``, ``docheader``, and ``code-style``. The
3535
reporting steps still run, but they do not use the flag themselves.
3636

3737
When the Unified Command Is the Right Choice

0 commit comments

Comments
 (0)