Skip to main content
ArcSight

← HomepageAll repository proofValidation recordState of TS Architecture 2026

Repository proof

PHP CS Fixer architecture

Changing src/Preg.php in PHP CS Fixer reaches 485 modules. 125 files call it directly. Snapshot e90a422.

The first file to open in PHP CS Fixer is src/Preg.php. A change there reaches 485 of 670 modules.

This lead file reaches 72% of the graph. The median published proof reaches 60%.

src/Preg.php485 · 125 fan-in
…t/AbstractRuleSetDefinition.php428 · 30 fan-in
…/RuleSetDefinitionInterface.php414 · 21 fan-in
src/Future.php403 · 31 fan-in
…alysis/NamespaceUseAnalysis.php401 · 17 fan-in

Median 60%. Thick bar is blast share. Thin bar is fan-in.

Download the finding

Project: PHP CS Fixer · Score: 80.4/100 (Healthy architecture) · 670 modules · 3,800 edges · PHP · 17 of 21 · Language score median 86.9

Cycles
23
Duplicate authorities
0
God modules
41
Layer violations
0
arc impact src/Preg.php

Under 3 minutes to first arc impact on a TypeScript monorepo (internal runs).

README badge

ArcSight architecture proof for PHP CS Fixer
[![ArcSight architecture proof for PHP CS Fixer](https://arcsight.ai/badge/proof/php-cs-fixer/)](https://arcsight.ai/repositories/php-cs-fixer/)

Blast radius paths

Ranked by blast radius. Fan-in is direct dependents. Blast radius is downstream modules reachable from that file.

PHP CS Fixer · e90a422

RankFileFan-inBlastShare
1src/Preg.php

concentrates too many responsibilities, shared utility hub

12548572%
2src/RuleSet/AbstractRuleSetDefinition.php

concentrates too many responsibilities, shared utility hub

3042864%
3src/RuleSet/RuleSetDefinitionInterface.php

concentrates too many responsibilities

2141462%
4src/Future.php3140360%
5src/Tokenizer/Analyzer/Analysis/NamespaceUseAnalysis.php1740160%
All ranked files
RankFileFan-inBlastShare
6src/Tokenizer/Token.php26040060%
7src/FixerConfiguration/FixerConfigurationResolverInterface.php13740060%
8src/FixerDefinition/FixerDefinition.php30139960%

Highest fan-in

src/Tokenizer/Tokens.phpfan-in 336

Circular dependencies

This snapshot records 23 dependency cycles.

Nearby proofs

Snapshot notes

In friendsofphp php-cs-fixer, a change that begins in Preg.php keeps traveling until it reaches RuleSet AbstractRuleSetDefinition.php, with RuleSet RuleSetDefinitionInterface.php as the third file on that walk and the ROOT_CLUSTER group as the group around them, snapshot mark fdfebdccaa.

Future.php is worth opening beside Preg.php because Analysis NamespaceUseAnalysis.php still participates when Future.php moves, and Tokenizer Token.php stays in view for friendsofphp php-cs-fixer, snapshot mark fdfebdccaa.

Review FixerConfiguration FixerConfigurationResolverInterface.php only after RuleSet AbstractRuleSetDefinition.php and FixerDefinition FixerDefinition.php are both on the table, since the link from Tokenizer Tokens.php back to RuleSet RuleSetDefinitionInterface.php belongs to friendsofphp php-cs-fixer under snapshot mark fdfebdccaa.

FixerDefinition FixerDefinitionInterface.php and FixerDefinition CodeSample.php are later stops, and a reviewer who has already seen Preg.php should still look at RuleSet AbstractRuleSetDefinition.php before treating the ROOT_CLUSTER group as understood for friendsofphp php-cs-fixer, snapshot mark fdfebdccaa.

RuleSet AbstractRuleSetDefinition.php closes the file list after RuleSet RuleSetDefinitionInterface.php and Preg.php, which keeps the friendsofphp php-cs-fixer note tied to snapshot mark fdfebdccaa, and the files named in this paragraph are the ones the review is willing to stand on.

Subsystem overview

  • ROOT_CLUSTER (523 modules)
  • Console-ConfigurationResolver.php (68 modules)

CLI workflow

Impact, then scan, fix, finish, and watch.

  • arc impact <file>See what a change breaks
  • arc scanFind issues
  • arc fixApply fixes
  • arc finishResolve remaining
  • arc watchKeep clean

More commands (explain, guard…) →

FAQ

Which file should change first in friendsofphp php-cs-fixer: Preg.php?
Start with Preg.php, because the rest of the friendsofphp php-cs-fixer walk leaves from that file and RuleSet AbstractRuleSetDefinition.php is the next file in the same review. Commit fdfebdccaa records it.
What else is on the friendsofphp php-cs-fixer walk besides Preg.php and RuleSet RuleSetDefinitionInterface.php?
RuleSet RuleSetDefinitionInterface.php and Future.php stay on the walk with Analysis NamespaceUseAnalysis.php, which are different files from Preg.php inside the ROOT_CLUSTER group for friendsofphp php-cs-fixer. Commit fdfebdccaa records it.
How should a reviewer use Tokenizer Token.php in the friendsofphp php-cs-fixer snapshot?
Keep Tokenizer Token.php, FixerConfiguration FixerConfigurationResolverInterface.php, and FixerDefinition FixerDefinition.php open together, then check Tokenizer Tokens.php before merging the friendsofphp php-cs-fixer change. Commit fdfebdccaa records it.
Where does the friendsofphp php-cs-fixer review stop after FixerDefinition FixerDefinitionInterface.php?
Stop after FixerDefinition FixerDefinitionInterface.php, FixerDefinition CodeSample.php, and Preg.php have been compared with RuleSet AbstractRuleSetDefinition.php, leaving the ROOT_CLUSTER group until those friendsofphp php-cs-fixer files are clear. Commit fdfebdccaa records it.

Run ArcSight on your repo

Install locally, then run arc impact on the file you plan to change — before merge.

npx arcsight init
arc impact <path>
Install ArcSight →

Embed this report

Use this iframe to show the architecture badge on your site.

<iframe src="https://arcsight.ai/embed/php-cs-fixer/" width="320" height="180" frameborder="0"></iframe>

Explore

Evidence-backed analysis snapshot. snapshot.json · How ArcSight measures blast radius · Install · Homepage demo