Executive summary
twigphp/Twig scores 63 out of 100 and is rated Adequate, while three of its five lenses score higher still: Architecture at 96, Security and Compliance at 95 and Production Readiness at 90, all rated Exemplary.
The score is lower than those three because the weakest lens counts most, and here that is Maturity, which scores 49 and is rated Weak. Its Architecture documentation dimension scores 0 out of 10, and until that reaches 4, Maturity can't be rated higher than Adequate. The first actions are to record your significant design decisions and to raise PHPStan to level 8 (`level: 8` in `phpstan.neon.dist`, or `max`) or Psalm to `errorLevel="3"` or stricter, so `?Type` is a type the checker holds you to; generate a baseline for what that surfaces only to pay it down, not to keep it, and if Maturity rose to 70, the score would rise from 63 to about 70.
15 findings are critical, all in Static Analysis (SAST).
Watchdog couldn't measure 18 dimensions in this code, among them Code Coverage, Test Reliability and Dependency Hygiene, so they are left out of the score. The product code is 24,719 lines, which would take an estimated 0.4 person-years, around €52,000, to rebuild.
If Maturity rose from 49 to 70, the lowest score rated Strong, the score would rise from 63 to about 70.
New since the last survey: 1 finding
- Churn × Complexity Hotspots · Hotspot: src/Runtime/EscaperRuntime.php src/Runtime/EscaperRuntime.php
Fixed since the last survey: 1 finding
- Churn × Complexity Hotspots · Hotspot: src/Node/Expression/GetAttrExpression.php src/Node/Expression/GetAttrExpression.php
Rebuild cost: about €52,000 · Estimate
| Cost to rebuild | €17,000 to €87,000, for 288 to 913 hours of work, about 0.4 person-years for one engineer |
|---|---|
| Difficulty of the problem | Standard, judged from the kind of software and how it is built. Code that solves a harder problem, such as payments or medical bookings, costs more per line to write. |
| Quality factor | ×0.9 at a score of 63. Better code takes more work to write, so the factor is ×1.0 at a score of 70, lower below it and higher above it. |
| Size | Medium: 24,719 lines of product code |
Top priorities
Diagnosis: what the measurements show together
Architecture: which parts of the code depend on which
| uses → | 1 Twig.Cache | 2 Twig.Extra.Html.HtmlAttr | 3 Twig.Extra.TwigExtraBundle | 4 Twig.Profiler | 5 Twig.RuntimeLoader | 6 Twig.Error | 7 Twig.Loader | 8 Twig.Node.Expression.Variable | 9 Twig.Profiler.Dumper | 10 Twig.Node | 11 Twig.Sandbox | 12 Twig.Runtime | 13 Twig.TokenParser | 14 Twig.Util | 15 Twig.Node.Expression | 16 Twig.ExpressionParser | 17 Twig.Node.Expression.Filter | 18 Twig.NodeVisitor | 19 Twig.Extension | 20 Twig | 21 Twig.Extra.Cache | 22 Twig.Extra.CssInliner | 23 Twig.Extra.Inky | 24 Twig.Extra.Markdown | 25 Twig.Extra.String | 26 Twig.Attribute | 27 Twig.ExpressionParser.Infix | 28 Twig.ExpressionParser.Prefix | 29 Twig.Extra.Cache.Node | 30 Twig.Extra.Cache.TokenParser | 31 Twig.Extra.Html | 32 Twig.Extra.Intl | 33 Twig.Node.Expression.Binary | 34 Twig.Node.Expression.FunctionNode | 35 Twig.Node.Expression.Ternary | 36 Twig.Node.Expression.Test | 37 Twig.Node.Expression.Unary | 38 Twig.Profiler.Node | 39 Twig.Profiler.NodeVisitor | 40 src.Resources |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 Twig.Cache | ||||||||||||||||||||||||||||||||||||||||
| 2 Twig.Extra.Html.HtmlAttr | ||||||||||||||||||||||||||||||||||||||||
| 3 Twig.Extra.TwigExtraBundle | ||||||||||||||||||||||||||||||||||||||||
| 4 Twig.Profiler | ||||||||||||||||||||||||||||||||||||||||
| 5 Twig.RuntimeLoader | ||||||||||||||||||||||||||||||||||||||||
| 6 Twig.Error | 1 | |||||||||||||||||||||||||||||||||||||||
| 7 Twig.Loader | 4 | |||||||||||||||||||||||||||||||||||||||
| 8 Twig.Node.Expression.Variable | 5 | 2 | ||||||||||||||||||||||||||||||||||||||
| 9 Twig.Profiler.Dumper | 4 | |||||||||||||||||||||||||||||||||||||||
| 10 Twig.Node | 1 | 9 | 30 | |||||||||||||||||||||||||||||||||||||
| 11 Twig.Sandbox | 1 | 5 | ||||||||||||||||||||||||||||||||||||||
| 12 Twig.Runtime | 1 | 2 | ||||||||||||||||||||||||||||||||||||||
| 13 Twig.TokenParser | 22 | 24 | ||||||||||||||||||||||||||||||||||||||
| 14 Twig.Util | 2 | 5 | ||||||||||||||||||||||||||||||||||||||
| 15 Twig.Node.Expression | 2 | 15 | 1 | 22 | ||||||||||||||||||||||||||||||||||||
| 16 Twig.ExpressionParser | 2 | 4 | ||||||||||||||||||||||||||||||||||||||
| 17 Twig.Node.Expression.Filter | 3 | 3 | 3 | |||||||||||||||||||||||||||||||||||||
| 18 Twig.NodeVisitor | 11 | 6 | 1 | 8 | ||||||||||||||||||||||||||||||||||||
| 19 Twig.Extension | 1 | 2 | 3 | 1 | 1 | 1 | 1 | 12 | ||||||||||||||||||||||||||||||||
| 20 Twig | 1 | 1 | 11 | 2 | 1 | 8 | 3 | 2 | ||||||||||||||||||||||||||||||||
| 21 Twig.Extra.Cache | 1 | |||||||||||||||||||||||||||||||||||||||
| 22 Twig.Extra.CssInliner | 1 | |||||||||||||||||||||||||||||||||||||||
| 23 Twig.Extra.Inky | 1 | |||||||||||||||||||||||||||||||||||||||
| 24 Twig.Extra.Markdown | 1 | |||||||||||||||||||||||||||||||||||||||
| 25 Twig.Extra.String | 1 | |||||||||||||||||||||||||||||||||||||||
| 26 Twig.Attribute | 3 | |||||||||||||||||||||||||||||||||||||||
| 27 Twig.ExpressionParser.Infix | 1 | 11 | 34 | 21 | ||||||||||||||||||||||||||||||||||||
| 28 Twig.ExpressionParser.Prefix | 1 | 4 | 13 | 8 | ||||||||||||||||||||||||||||||||||||
| 29 Twig.Extra.Cache.Node | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||||
| 30 Twig.Extra.Cache.TokenParser | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||||
| 31 Twig.Extra.Html | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||||
| 32 Twig.Extra.Intl | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 33 Twig.Node.Expression.Binary | 22 | 35 | 37 | |||||||||||||||||||||||||||||||||||||
| 34 Twig.Node.Expression.FunctionNode | 1 | 3 | 3 | |||||||||||||||||||||||||||||||||||||
| 35 Twig.Node.Expression.Ternary | 2 | 1 | ||||||||||||||||||||||||||||||||||||||
| 36 Twig.Node.Expression.Test | 2 | 8 | 8 | |||||||||||||||||||||||||||||||||||||
| 37 Twig.Node.Expression.Unary | 2 | 3 | 6 | |||||||||||||||||||||||||||||||||||||
| 38 Twig.Profiler.Node | 2 | 2 | ||||||||||||||||||||||||||||||||||||||
| 39 Twig.Profiler.NodeVisitor | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||||
| 40 src.Resources | 1 | 6 |
6→20 Twig.Error uses Twig part of a loop✕
- Connections
- 1 pair of types, where a type in Twig.Error uses a type in Twig.
- The types involved
Twig.Error.Error→Twig.Source
- Direction
- Twig.Error uses Twig, so a change to Twig can break Twig.Error, while a change to Twig.Error can't break Twig.
- Position
- Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
7→20 Twig.Loader uses Twig part of a loop✕
- Connections
- 4 pairs of types, where a type in Twig.Loader uses a type in Twig.
- The types involved
Twig.Loader.ArrayLoader→Twig.SourceTwig.Loader.ChainLoader→Twig.SourceTwig.Loader.FilesystemLoader→Twig.SourceTwig.Loader.LoaderInterface→Twig.Source
- Direction
- Twig.Loader uses Twig, so a change to Twig can break Twig.Loader, while a change to Twig.Loader can't break Twig.
- Position
- Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
8→15 Twig.Node.Expression.Variable uses Twig.Node.Expression part of a loop✕
- Connections
- 5 pairs of types, where a type in Twig.Node.Expression.Variable uses a type in Twig.Node.Expression.
- The types involved
Twig.Node.Expression.Variable.AssignContextVariable→Twig.Node.Expression.AssignNameExpressionTwig.Node.Expression.Variable.AssignMacroVariable→Twig.Node.Expression.AbstractExpressionTwig.Node.Expression.Variable.ContextVariable→Twig.Node.Expression.NameExpressionTwig.Node.Expression.Variable.LocalVariable→Twig.Node.Expression.TempNameExpressionTwig.Node.Expression.Variable.MacroVariable→Twig.Node.Expression.TempNameExpression
- Direction
- Twig.Node.Expression.Variable uses Twig.Node.Expression, so a change to Twig.Node.Expression can break Twig.Node.Expression.Variable, while a change to Twig.Node.Expression.Variable can't break Twig.Node.Expression.
- Position
- Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
8→20 Twig.Node.Expression.Variable uses Twig part of a loop✕
- Connections
- 2 pairs of types, where a type in Twig.Node.Expression.Variable uses a type in Twig.
- The types involved
Twig.Node.Expression.Variable.AssignMacroVariable→Twig.CompilerTwig.Node.Expression.Variable.MacroVariable→Twig.Compiler
- Direction
- Twig.Node.Expression.Variable uses Twig, so a change to Twig can break Twig.Node.Expression.Variable, while a change to Twig.Node.Expression.Variable can't break Twig.
- Position
- Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
9→4 Twig.Profiler.Dumper uses Twig.Profiler✕
- Connections
- 4 pairs of types, where a type in Twig.Profiler.Dumper uses a type in Twig.Profiler.
- The types involved
Twig.Profiler.Dumper.BaseDumper→Twig.Profiler.ProfileTwig.Profiler.Dumper.BlackfireDumper→Twig.Profiler.ProfileTwig.Profiler.Dumper.HtmlDumper→Twig.Profiler.ProfileTwig.Profiler.Dumper.TextDumper→Twig.Profiler.Profile
- Direction
- Twig.Profiler.Dumper uses Twig.Profiler, so a change to Twig.Profiler can break Twig.Profiler.Dumper, while a change to Twig.Profiler.Dumper can't break Twig.Profiler.
- Position
- Below the diagonal: Twig.Profiler.Dumper uses a module listed above it, which is the healthy direction.
10→8 Twig.Node uses Twig.Node.Expression.Variable✕
- Connections
- 1 pair of types, where a type in Twig.Node uses a type in Twig.Node.Expression.Variable.
- The types involved
Twig.Node.ForNode→Twig.Node.Expression.Variable.AssignContextVariable
- Direction
- Twig.Node uses Twig.Node.Expression.Variable, so a change to Twig.Node.Expression.Variable can break Twig.Node, while a change to Twig.Node can't break Twig.Node.Expression.Variable.
- Position
- Below the diagonal: Twig.Node uses a module listed above it, which is the healthy direction.
10→15 Twig.Node uses Twig.Node.Expression part of a loop✕
- Connections
- 9 pairs of types, where a type in Twig.Node uses a type in Twig.Node.Expression.
- The types involved
Twig.Node.CheckToStringNode→Twig.Node.Expression.AbstractExpressionTwig.Node.DeprecatedNode→Twig.Node.Expression.AbstractExpressionTwig.Node.DoNode→Twig.Node.Expression.AbstractExpressionTwig.Node.EmbedNode→Twig.Node.Expression.AbstractExpressionTwig.Node.ForNode→Twig.Node.Expression.AbstractExpressionTwig.Node.ImportNode→Twig.Node.Expression.AbstractExpressionTwig.Node.IncludeNode→Twig.Node.Expression.AbstractExpressionTwig.Node.ModuleNode→Twig.Node.Expression.AbstractExpressionTwig.Node.PrintNode→Twig.Node.Expression.AbstractExpression
- Direction
- Twig.Node uses Twig.Node.Expression, so a change to Twig.Node.Expression can break Twig.Node, while a change to Twig.Node can't break Twig.Node.Expression.
- Position
- Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
10→20 Twig.Node uses Twig part of a loop✕
- Connections
- 30 pairs of types, where a type in Twig.Node uses a type in Twig. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
- The types involved
Twig.Node.AutoEscapeNode→Twig.CompilerTwig.Node.BlockNode→Twig.CompilerTwig.Node.BlockReferenceNode→Twig.CompilerTwig.Node.CaptureNode→Twig.CompilerTwig.Node.CheckSecurityCallNode→Twig.CompilerTwig.Node.CheckSecurityNode→Twig.CompilerTwig.Node.CheckToStringNode→Twig.CompilerTwig.Node.DeprecatedNode→Twig.CompilerTwig.Node.DoNode→Twig.CompilerTwig.Node.EmbedNode→Twig.CompilerTwig.Node.FlushNode→Twig.CompilerTwig.Node.ForElseNode→Twig.CompilerTwig.Node.ForLoopNode→Twig.CompilerTwig.Node.ForNode→Twig.CompilerTwig.Node.IfNode→Twig.CompilerTwig.Node.ImportNode→Twig.CompilerTwig.Node.IncludeNode→Twig.CompilerTwig.Node.MacroNode→Twig.CompilerTwig.Node.MacrosNode→Twig.CompilerTwig.Node.ModuleNode→Twig.CompilerTwig.Node.ModuleNode→Twig.SourceTwig.Node.Node→Twig.CompilerTwig.Node.Node→Twig.SourceTwig.Node.NodeDocumentation→Twig.TokenTwig.Node.PrintNode→Twig.Compiler
- Direction
- Twig.Node uses Twig, so a change to Twig can break Twig.Node, while a change to Twig.Node can't break Twig.
- Position
- Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
11→6 Twig.Sandbox uses Twig.Error✕
- Connections
- 1 pair of types, where a type in Twig.Sandbox uses a type in Twig.Error.
- The types involved
Twig.Sandbox.SecurityError→Twig.Error.Error
- Direction
- Twig.Sandbox uses Twig.Error, so a change to Twig.Error can break Twig.Sandbox, while a change to Twig.Sandbox can't break Twig.Error.
- Position
- Below the diagonal: Twig.Sandbox uses a module listed above it, which is the healthy direction.
11→20 Twig.Sandbox uses Twig part of a loop✕
- Connections
- 5 pairs of types, where a type in Twig.Sandbox uses a type in Twig.
- The types involved
Twig.Sandbox.Sandbox→Twig.EnvironmentTwig.Sandbox.Sandbox→Twig.TemplateWrapperTwig.Sandbox.SandboxInterface→Twig.TemplateWrapperTwig.Sandbox.SecurityChecker→Twig.SourceTwig.Sandbox.SourcePolicyInterface→Twig.Source
- Direction
- Twig.Sandbox uses Twig, so a change to Twig can break Twig.Sandbox, while a change to Twig.Sandbox can't break Twig.
- Position
- Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
12→11 Twig.Runtime uses Twig.Sandbox✕
- Connections
- 1 pair of types, where a type in Twig.Runtime uses a type in Twig.Sandbox.
- The types involved
Twig.Runtime.SandboxBridgeRuntime→Twig.Sandbox.SandboxInterface
- Direction
- Twig.Runtime uses Twig.Sandbox, so a change to Twig.Sandbox can break Twig.Runtime, while a change to Twig.Runtime can't break Twig.Sandbox.
- Position
- Below the diagonal: Twig.Runtime uses a module listed above it, which is the healthy direction.
12→19 Twig.Runtime uses Twig.Extension part of a loop✕
- Connections
- 2 pairs of types, where a type in Twig.Runtime uses a type in Twig.Extension.
- The types involved
Twig.Runtime.EscaperRuntime→Twig.Extension.RuntimeExtensionInterfaceTwig.Runtime.SandboxBridgeRuntime→Twig.Extension.RuntimeExtensionInterface
- Direction
- Twig.Runtime uses Twig.Extension, so a change to Twig.Extension can break Twig.Runtime, while a change to Twig.Runtime can't break Twig.Extension.
- Position
- Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
13→10 Twig.TokenParser uses Twig.Node✕
- Connections
- 22 pairs of types, where a type in Twig.TokenParser uses a type in Twig.Node.
- The types involved
Twig.TokenParser.AbstractTokenParser→Twig.Node.NodesTwig.TokenParser.ApplyTokenParser→Twig.Node.NodeTwig.TokenParser.AutoEscapeTokenParser→Twig.Node.NodeTwig.TokenParser.BlockTokenParser→Twig.Node.NodeTwig.TokenParser.DeprecatedTokenParser→Twig.Node.NodeTwig.TokenParser.DoTokenParser→Twig.Node.NodeTwig.TokenParser.EmbedTokenParser→Twig.Node.NodeTwig.TokenParser.ExtendsTokenParser→Twig.Node.NodeTwig.TokenParser.FlushTokenParser→Twig.Node.NodeTwig.TokenParser.ForTokenParser→Twig.Node.NodeTwig.TokenParser.FromTokenParser→Twig.Node.NodeTwig.TokenParser.GuardTokenParser→Twig.Node.NodeTwig.TokenParser.IfTokenParser→Twig.Node.NodeTwig.TokenParser.ImportTokenParser→Twig.Node.NodeTwig.TokenParser.IncludeTokenParser→Twig.Node.NodeTwig.TokenParser.MacroTokenParser→Twig.Node.NodeTwig.TokenParser.SandboxTokenParser→Twig.Node.NodeTwig.TokenParser.SetTokenParser→Twig.Node.NodeTwig.TokenParser.SetTokenParser→Twig.Node.NodesTwig.TokenParser.TypesTokenParser→Twig.Node.NodeTwig.TokenParser.UseTokenParser→Twig.Node.NodeTwig.TokenParser.WithTokenParser→Twig.Node.Node
- Direction
- Twig.TokenParser uses Twig.Node, so a change to Twig.Node can break Twig.TokenParser, while a change to Twig.TokenParser can't break Twig.Node.
- Position
- Below the diagonal: Twig.TokenParser uses a module listed above it, which is the healthy direction.
13→20 Twig.TokenParser uses Twig part of a loop✕
- Connections
- 24 pairs of types, where a type in Twig.TokenParser uses a type in Twig.
- The types involved
Twig.TokenParser.AbstractTokenParser→Twig.ParserTwig.TokenParser.ApplyTokenParser→Twig.TokenTwig.TokenParser.AutoEscapeTokenParser→Twig.TokenTwig.TokenParser.BlockTokenParser→Twig.TokenTwig.TokenParser.DeprecatedTokenParser→Twig.TokenTwig.TokenParser.DoTokenParser→Twig.TokenTwig.TokenParser.EmbedTokenParser→Twig.TokenTwig.TokenParser.ExtendsTokenParser→Twig.TokenTwig.TokenParser.FlushTokenParser→Twig.TokenTwig.TokenParser.ForTokenParser→Twig.TokenTwig.TokenParser.FromTokenParser→Twig.TokenTwig.TokenParser.GuardTokenParser→Twig.TokenTwig.TokenParser.IfTokenParser→Twig.TokenTwig.TokenParser.ImportTokenParser→Twig.TokenTwig.TokenParser.IncludeTokenParser→Twig.TokenTwig.TokenParser.MacroTokenParser→Twig.TokenTwig.TokenParser.SandboxTokenParser→Twig.TokenTwig.TokenParser.SetTokenParser→Twig.TokenTwig.TokenParser.TokenParserInterface→Twig.ParserTwig.TokenParser.TokenParserInterface→Twig.TokenTwig.TokenParser.TypesTokenParser→Twig.TokenTwig.TokenParser.TypesTokenParser→Twig.TokenStreamTwig.TokenParser.UseTokenParser→Twig.TokenTwig.TokenParser.WithTokenParser→Twig.Token
- Direction
- Twig.TokenParser uses Twig, so a change to Twig can break Twig.TokenParser, while a change to Twig.TokenParser can't break Twig.
- Position
- Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
14→10 Twig.Util uses Twig.Node✕
- Connections
- 2 pairs of types, where a type in Twig.Util uses a type in Twig.Node.
- The types involved
Twig.Util.CallableArgumentsExtractor→Twig.Node.NodeTwig.Util.CallableParameters→Twig.Node.Node
- Direction
- Twig.Util uses Twig.Node, so a change to Twig.Node can break Twig.Util, while a change to Twig.Util can't break Twig.Node.
- Position
- Below the diagonal: Twig.Util uses a module listed above it, which is the healthy direction.
14→20 Twig.Util uses Twig part of a loop✕
- Connections
- 5 pairs of types, where a type in Twig.Util uses a type in Twig.
- The types involved
Twig.Util.CallableArgumentsExtractor→Twig.TwigCallableInterfaceTwig.Util.CallableParameters→Twig.EnvironmentTwig.Util.CallableParameters→Twig.TwigCallableInterfaceTwig.Util.DeprecationCollector→Twig.EnvironmentTwig.Util.ReflectionCallable→Twig.TwigCallableInterface
- Direction
- Twig.Util uses Twig, so a change to Twig can break Twig.Util, while a change to Twig.Util can't break Twig.
- Position
- Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
15→8 Twig.Node.Expression uses Twig.Node.Expression.Variable✕
- Connections
- 2 pairs of types, where a type in Twig.Node.Expression uses a type in Twig.Node.Expression.Variable.
- The types involved
Twig.Node.Expression.AssignNameExpression→Twig.Node.Expression.Variable.ContextVariableTwig.Node.Expression.MacroReferenceExpression→Twig.Node.Expression.Variable.MacroVariable
- Direction
- Twig.Node.Expression uses Twig.Node.Expression.Variable, so a change to Twig.Node.Expression.Variable can break Twig.Node.Expression, while a change to Twig.Node.Expression can't break Twig.Node.Expression.Variable.
- Position
- Below the diagonal: Twig.Node.Expression uses a module listed above it, which is the healthy direction.
15→10 Twig.Node.Expression uses Twig.Node✕
- Connections
- 15 pairs of types, where a type in Twig.Node.Expression uses a type in Twig.Node.
- The types involved
Twig.Node.Expression.AbstractExpression→Twig.Node.NodeTwig.Node.Expression.ArrayExpression→Twig.Node.CoercesChildrenToStringInterfaceTwig.Node.Expression.ArrowFunctionExpression→Twig.Node.NodeTwig.Node.Expression.BlockReferenceExpression→Twig.Node.CoercesChildrenToStringInterfaceTwig.Node.Expression.BlockReferenceExpression→Twig.Node.NodeTwig.Node.Expression.FilterExpression→Twig.Node.CoercesChildrenToStringInterfaceTwig.Node.Expression.FilterExpression→Twig.Node.NodeTwig.Node.Expression.FunctionExpression→Twig.Node.CoercesChildrenToStringInterfaceTwig.Node.Expression.FunctionExpression→Twig.Node.NodeTwig.Node.Expression.GetAttrExpression→Twig.Node.CoercesChildrenToStringInterfaceTwig.Node.Expression.InlinePrint→Twig.Node.NodeTwig.Node.Expression.MacroReferenceExpression→Twig.Node.CoercesChildrenToStringInterfaceTwig.Node.Expression.NullCoalesceExpression→Twig.Node.NodeTwig.Node.Expression.TestExpression→Twig.Node.CoercesChildrenToStringInterfaceTwig.Node.Expression.TestExpression→Twig.Node.Node
- Direction
- Twig.Node.Expression uses Twig.Node, so a change to Twig.Node can break Twig.Node.Expression, while a change to Twig.Node.Expression can't break Twig.Node.
- Position
- Below the diagonal: Twig.Node.Expression uses a module listed above it, which is the healthy direction.
15→14 Twig.Node.Expression uses Twig.Util✕
- Connections
- 1 pair of types, where a type in Twig.Node.Expression uses a type in Twig.Util.
- The types involved
Twig.Node.Expression.CallExpression→Twig.Util.ReflectionCallable
- Direction
- Twig.Node.Expression uses Twig.Util, so a change to Twig.Util can break Twig.Node.Expression, while a change to Twig.Node.Expression can't break Twig.Util.
- Position
- Below the diagonal: Twig.Node.Expression uses a module listed above it, which is the healthy direction.
15→20 Twig.Node.Expression uses Twig part of a loop✕
- Connections
- 22 pairs of types, where a type in Twig.Node.Expression uses a type in Twig.
- The types involved
Twig.Node.Expression.ArrayExpression→Twig.CompilerTwig.Node.Expression.ArrowFunctionExpression→Twig.CompilerTwig.Node.Expression.AssignNameExpression→Twig.CompilerTwig.Node.Expression.BlockReferenceExpression→Twig.CompilerTwig.Node.Expression.CallExpression→Twig.CompilerTwig.Node.Expression.CallExpression→Twig.TwigCallableInterfaceTwig.Node.Expression.ConditionalExpression→Twig.CompilerTwig.Node.Expression.ConstantExpression→Twig.CompilerTwig.Node.Expression.EmptyExpression→Twig.CompilerTwig.Node.Expression.FilterExpression→Twig.CompilerTwig.Node.Expression.FunctionExpression→Twig.CompilerTwig.Node.Expression.GetAttrExpression→Twig.CompilerTwig.Node.Expression.InlinePrint→Twig.CompilerTwig.Node.Expression.ListExpression→Twig.CompilerTwig.Node.Expression.MacroReferenceExpression→Twig.CompilerTwig.Node.Expression.MethodCallExpression→Twig.CompilerTwig.Node.Expression.NameExpression→Twig.CompilerTwig.Node.Expression.NullCoalesceExpression→Twig.CompilerTwig.Node.Expression.ParentExpression→Twig.CompilerTwig.Node.Expression.TempNameExpression→Twig.CompilerTwig.Node.Expression.TestExpression→Twig.CompilerTwig.Node.Expression.VariadicExpression→Twig.Compiler
- Direction
- Twig.Node.Expression uses Twig, so a change to Twig can break Twig.Node.Expression, while a change to Twig.Node.Expression can't break Twig.
- Position
- Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
16→15 Twig.ExpressionParser uses Twig.Node.Expression✕
- Connections
- 2 pairs of types, where a type in Twig.ExpressionParser uses a type in Twig.Node.Expression.
- The types involved
Twig.ExpressionParser.InfixExpressionParserInterface→Twig.Node.Expression.AbstractExpressionTwig.ExpressionParser.PrefixExpressionParserInterface→Twig.Node.Expression.AbstractExpression
- Direction
- Twig.ExpressionParser uses Twig.Node.Expression, so a change to Twig.Node.Expression can break Twig.ExpressionParser, while a change to Twig.ExpressionParser can't break Twig.Node.Expression.
- Position
- Below the diagonal: Twig.ExpressionParser uses a module listed above it, which is the healthy direction.
16→20 Twig.ExpressionParser uses Twig part of a loop✕
- Connections
- 4 pairs of types, where a type in Twig.ExpressionParser uses a type in Twig.
- The types involved
Twig.ExpressionParser.InfixExpressionParserInterface→Twig.ParserTwig.ExpressionParser.InfixExpressionParserInterface→Twig.TokenTwig.ExpressionParser.PrefixExpressionParserInterface→Twig.ParserTwig.ExpressionParser.PrefixExpressionParserInterface→Twig.Token
- Direction
- Twig.ExpressionParser uses Twig, so a change to Twig can break Twig.ExpressionParser, while a change to Twig.ExpressionParser can't break Twig.
- Position
- Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
17→10 Twig.Node.Expression.Filter uses Twig.Node✕
- Connections
- 3 pairs of types, where a type in Twig.Node.Expression.Filter uses a type in Twig.Node.
- The types involved
Twig.Node.Expression.Filter.DefaultFilter→Twig.Node.NodeTwig.Node.Expression.Filter.EscapeFilter→Twig.Node.NodeTwig.Node.Expression.Filter.RawFilter→Twig.Node.Node
- Direction
- Twig.Node.Expression.Filter uses Twig.Node, so a change to Twig.Node can break Twig.Node.Expression.Filter, while a change to Twig.Node.Expression.Filter can't break Twig.Node.
- Position
- Below the diagonal: Twig.Node.Expression.Filter uses a module listed above it, which is the healthy direction.
17→15 Twig.Node.Expression.Filter uses Twig.Node.Expression✕
- Connections
- 3 pairs of types, where a type in Twig.Node.Expression.Filter uses a type in Twig.Node.Expression.
- The types involved
Twig.Node.Expression.Filter.DefaultFilter→Twig.Node.Expression.FilterExpressionTwig.Node.Expression.Filter.EscapeFilter→Twig.Node.Expression.FilterExpressionTwig.Node.Expression.Filter.RawFilter→Twig.Node.Expression.FilterExpression
- Direction
- Twig.Node.Expression.Filter uses Twig.Node.Expression, so a change to Twig.Node.Expression can break Twig.Node.Expression.Filter, while a change to Twig.Node.Expression.Filter can't break Twig.Node.Expression.
- Position
- Below the diagonal: Twig.Node.Expression.Filter uses a module listed above it, which is the healthy direction.
17→20 Twig.Node.Expression.Filter uses Twig part of a loop✕
- Connections
- 3 pairs of types, where a type in Twig.Node.Expression.Filter uses a type in Twig.
- The types involved
Twig.Node.Expression.Filter.DefaultFilter→Twig.CompilerTwig.Node.Expression.Filter.EscapeFilter→Twig.CompilerTwig.Node.Expression.Filter.RawFilter→Twig.Compiler
- Direction
- Twig.Node.Expression.Filter uses Twig, so a change to Twig can break Twig.Node.Expression.Filter, while a change to Twig.Node.Expression.Filter can't break Twig.
- Position
- Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
18→10 Twig.NodeVisitor uses Twig.Node✕
- Connections
- 11 pairs of types, where a type in Twig.NodeVisitor uses a type in Twig.Node.
- The types involved
Twig.NodeVisitor.AbstractNodeVisitor→Twig.Node.NodeTwig.NodeVisitor.CorrectnessNodeVisitor→Twig.Node.BlockReferenceNodeTwig.NodeVisitor.CorrectnessNodeVisitor→Twig.Node.ConfigNodeTwig.NodeVisitor.CorrectnessNodeVisitor→Twig.Node.ModuleNodeTwig.NodeVisitor.CorrectnessNodeVisitor→Twig.Node.NodeTwig.NodeVisitor.EscaperNodeVisitor→Twig.Node.NodeTwig.NodeVisitor.NodeVisitorInterface→Twig.Node.NodeTwig.NodeVisitor.OptimizerNodeVisitor→Twig.Node.NodeTwig.NodeVisitor.SafeAnalysisNodeVisitor→Twig.Node.NodeTwig.NodeVisitor.SandboxNodeVisitor→Twig.Node.NodeTwig.NodeVisitor.YieldNotReadyNodeVisitor→Twig.Node.Node
- Direction
- Twig.NodeVisitor uses Twig.Node, so a change to Twig.Node can break Twig.NodeVisitor, while a change to Twig.NodeVisitor can't break Twig.Node.
- Position
- Below the diagonal: Twig.NodeVisitor uses a module listed above it, which is the healthy direction.
18→15 Twig.NodeVisitor uses Twig.Node.Expression✕
- Connections
- 6 pairs of types, where a type in Twig.NodeVisitor uses a type in Twig.Node.Expression.
- The types involved
Twig.NodeVisitor.CorrectnessNodeVisitor→Twig.Node.Expression.MacroReferenceExpressionTwig.NodeVisitor.EscaperNodeVisitor→Twig.Node.Expression.AbstractExpressionTwig.NodeVisitor.EscaperNodeVisitor→Twig.Node.Expression.FilterExpressionTwig.NodeVisitor.SandboxNodeVisitor→Twig.Node.Expression.FilterExpressionTwig.NodeVisitor.SandboxNodeVisitor→Twig.Node.Expression.FunctionExpressionTwig.NodeVisitor.SandboxNodeVisitor→Twig.Node.Expression.TestExpression
- Direction
- Twig.NodeVisitor uses Twig.Node.Expression, so a change to Twig.Node.Expression can break Twig.NodeVisitor, while a change to Twig.NodeVisitor can't break Twig.Node.Expression.
- Position
- Below the diagonal: Twig.NodeVisitor uses a module listed above it, which is the healthy direction.
18→17 Twig.NodeVisitor uses Twig.Node.Expression.Filter✕
- Connections
- 1 pair of types, where a type in Twig.NodeVisitor uses a type in Twig.Node.Expression.Filter.
- The types involved
Twig.NodeVisitor.EscaperNodeVisitor→Twig.Node.Expression.Filter.EscapeFilter
- Direction
- Twig.NodeVisitor uses Twig.Node.Expression.Filter, so a change to Twig.Node.Expression.Filter can break Twig.NodeVisitor, while a change to Twig.NodeVisitor can't break Twig.Node.Expression.Filter.
- Position
- Below the diagonal: Twig.NodeVisitor uses a module listed above it, which is the healthy direction.
18→20 Twig.NodeVisitor uses Twig part of a loop✕
- Connections
- 8 pairs of types, where a type in Twig.NodeVisitor uses a type in Twig.
- The types involved
Twig.NodeVisitor.AbstractNodeVisitor→Twig.EnvironmentTwig.NodeVisitor.CorrectnessNodeVisitor→Twig.EnvironmentTwig.NodeVisitor.EscaperNodeVisitor→Twig.EnvironmentTwig.NodeVisitor.NodeVisitorInterface→Twig.EnvironmentTwig.NodeVisitor.OptimizerNodeVisitor→Twig.EnvironmentTwig.NodeVisitor.SafeAnalysisNodeVisitor→Twig.EnvironmentTwig.NodeVisitor.SandboxNodeVisitor→Twig.EnvironmentTwig.NodeVisitor.YieldNotReadyNodeVisitor→Twig.Environment
- Direction
- Twig.NodeVisitor uses Twig, so a change to Twig can break Twig.NodeVisitor, while a change to Twig.NodeVisitor can't break Twig.
- Position
- Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
19→4 Twig.Extension uses Twig.Profiler✕
- Connections
- 1 pair of types, where a type in Twig.Extension uses a type in Twig.Profiler.
- The types involved
Twig.Extension.ProfilerExtension→Twig.Profiler.Profile
- Direction
- Twig.Extension uses Twig.Profiler, so a change to Twig.Profiler can break Twig.Extension, while a change to Twig.Extension can't break Twig.Profiler.
- Position
- Below the diagonal: Twig.Extension uses a module listed above it, which is the healthy direction.
19→10 Twig.Extension uses Twig.Node✕
- Connections
- 2 pairs of types, where a type in Twig.Extension uses a type in Twig.Node.
- The types involved
Twig.Extension.CoreExtension→Twig.Node.NodeTwig.Extension.EscaperExtension→Twig.Node.Node
- Direction
- Twig.Extension uses Twig.Node, so a change to Twig.Node can break Twig.Extension, while a change to Twig.Extension can't break Twig.Node.
- Position
- Below the diagonal: Twig.Extension uses a module listed above it, which is the healthy direction.
19→11 Twig.Extension uses Twig.Sandbox✕
- Connections
- 3 pairs of types, where a type in Twig.Extension uses a type in Twig.Sandbox.
- The types involved
Twig.Extension.SandboxExtension→Twig.Sandbox.SecurityCheckerTwig.Extension.SandboxExtension→Twig.Sandbox.SecurityPolicyInterfaceTwig.Extension.SandboxExtension→Twig.Sandbox.SourcePolicyInterface
- Direction
- Twig.Extension uses Twig.Sandbox, so a change to Twig.Sandbox can break Twig.Extension, while a change to Twig.Extension can't break Twig.Sandbox.
- Position
- Below the diagonal: Twig.Extension uses a module listed above it, which is the healthy direction.
19→12 Twig.Extension uses Twig.Runtime✕
- Connections
- 1 pair of types, where a type in Twig.Extension uses a type in Twig.Runtime.
- The types involved
Twig.Extension.EscaperExtension→Twig.Runtime.EscaperRuntime
- Direction
- Twig.Extension uses Twig.Runtime, so a change to Twig.Runtime can break Twig.Extension, while a change to Twig.Extension can't break Twig.Runtime.
- Position
- Below the diagonal: Twig.Extension uses a module listed above it, which is the healthy direction.
19→13 Twig.Extension uses Twig.TokenParser✕
- Connections
- 1 pair of types, where a type in Twig.Extension uses a type in Twig.TokenParser.
- The types involved
Twig.Extension.StagingExtension→Twig.TokenParser.TokenParserInterface
- Direction
- Twig.Extension uses Twig.TokenParser, so a change to Twig.TokenParser can break Twig.Extension, while a change to Twig.Extension can't break Twig.TokenParser.
- Position
- Below the diagonal: Twig.Extension uses a module listed above it, which is the healthy direction.
19→15 Twig.Extension uses Twig.Node.Expression✕
- Connections
- 1 pair of types, where a type in Twig.Extension uses a type in Twig.Node.Expression.
- The types involved
Twig.Extension.CoreExtension→Twig.Node.Expression.AbstractExpression
- Direction
- Twig.Extension uses Twig.Node.Expression, so a change to Twig.Node.Expression can break Twig.Extension, while a change to Twig.Extension can't break Twig.Node.Expression.
- Position
- Below the diagonal: Twig.Extension uses a module listed above it, which is the healthy direction.
19→18 Twig.Extension uses Twig.NodeVisitor✕
- Connections
- 1 pair of types, where a type in Twig.Extension uses a type in Twig.NodeVisitor.
- The types involved
Twig.Extension.StagingExtension→Twig.NodeVisitor.NodeVisitorInterface
- Direction
- Twig.Extension uses Twig.NodeVisitor, so a change to Twig.NodeVisitor can break Twig.Extension, while a change to Twig.Extension can't break Twig.NodeVisitor.
- Position
- Below the diagonal: Twig.Extension uses a module listed above it, which is the healthy direction.
19→20 Twig.Extension uses Twig part of a loop✕
- Connections
- 12 pairs of types, where a type in Twig.Extension uses a type in Twig.
- The types involved
Twig.Extension.CoreExtension→Twig.EnvironmentTwig.Extension.CoreExtension→Twig.MacroNamespaceTwig.Extension.CoreExtension→Twig.ParserTwig.Extension.CoreExtension→Twig.SourceTwig.Extension.DebugExtension→Twig.EnvironmentTwig.Extension.EscaperExtension→Twig.EnvironmentTwig.Extension.SandboxExtension→Twig.SourceTwig.Extension.StagingExtension→Twig.TwigFilterTwig.Extension.StagingExtension→Twig.TwigFunctionTwig.Extension.StagingExtension→Twig.TwigTestTwig.Extension.StringLoaderExtension→Twig.EnvironmentTwig.Extension.StringLoaderExtension→Twig.TemplateWrapper
- Direction
- Twig.Extension uses Twig, so a change to Twig can break Twig.Extension, while a change to Twig.Extension can't break Twig.
- Position
- Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
20→5 Twig uses Twig.RuntimeLoader✕
- Connections
- 1 pair of types, where a type in Twig uses a type in Twig.RuntimeLoader.
- The types involved
Twig.Environment→Twig.RuntimeLoader.RuntimeLoaderInterface
- Direction
- Twig uses Twig.RuntimeLoader, so a change to Twig.RuntimeLoader can break Twig, while a change to Twig can't break Twig.RuntimeLoader.
- Position
- Below the diagonal: Twig uses a module listed above it, which is the healthy direction.
20→7 Twig uses Twig.Loader✕
- Connections
- 1 pair of types, where a type in Twig uses a type in Twig.Loader.
- The types involved
Twig.Environment→Twig.Loader.LoaderInterface
- Direction
- Twig uses Twig.Loader, so a change to Twig.Loader can break Twig, while a change to Twig can't break Twig.Loader.
- Position
- Below the diagonal: Twig uses a module listed above it, which is the healthy direction.
20→10 Twig uses Twig.Node✕
- Connections
- 11 pairs of types, where a type in Twig uses a type in Twig.Node.
- The types involved
Twig.Compiler→Twig.Node.NodeTwig.Environment→Twig.Node.ModuleNodeTwig.Environment→Twig.Node.NodeTwig.ExpressionParser→Twig.Node.NodeTwig.NodeTraverser→Twig.Node.NodeTwig.Parser→Twig.Node.BlockNodeTwig.Parser→Twig.Node.MacroNodeTwig.Parser→Twig.Node.ModuleNodeTwig.Parser→Twig.Node.NodeTwig.TwigFilter→Twig.Node.NodeTwig.TwigFunction→Twig.Node.Node
- Direction
- Twig uses Twig.Node, so a change to Twig.Node can break Twig, while a change to Twig can't break Twig.Node.
- Position
- Below the diagonal: Twig uses a module listed above it, which is the healthy direction.
20→13 Twig uses Twig.TokenParser✕
- Connections
- 2 pairs of types, where a type in Twig uses a type in Twig.TokenParser.
- The types involved
Twig.Environment→Twig.TokenParser.TokenParserInterfaceTwig.ExtensionSet→Twig.TokenParser.TokenParserInterface
- Direction
- Twig uses Twig.TokenParser, so a change to Twig.TokenParser can break Twig, while a change to Twig can't break Twig.TokenParser.
- Position
- Below the diagonal: Twig uses a module listed above it, which is the healthy direction.
20→15 Twig uses Twig.Node.Expression✕
- Connections
- 1 pair of types, where a type in Twig uses a type in Twig.Node.Expression.
- The types involved
Twig.Parser→Twig.Node.Expression.AbstractExpression
- Direction
- Twig uses Twig.Node.Expression, so a change to Twig.Node.Expression can break Twig, while a change to Twig can't break Twig.Node.Expression.
- Position
- Below the diagonal: Twig uses a module listed above it, which is the healthy direction.
20→16 Twig uses Twig.ExpressionParser✕
- Connections
- 8 pairs of types, where a type in Twig uses a type in Twig.ExpressionParser.
- The types involved
Twig.Environment→Twig.ExpressionParser.ExpressionParsersTwig.ExtensionSet→Twig.ExpressionParser.ExpressionParsersTwig.ExtensionSet→Twig.ExpressionParser.InfixAssociativityTwig.ExtensionSet→Twig.ExpressionParser.InfixExpressionParserInterfaceTwig.ExtensionSet→Twig.ExpressionParser.PrecedenceChangeTwig.OperatorPrecedenceChange→Twig.ExpressionParser.PrecedenceChangeTwig.Parser→Twig.ExpressionParser.ExpressionParserInterfaceTwig.Parser→Twig.ExpressionParser.ExpressionParsers
- Direction
- Twig uses Twig.ExpressionParser, so a change to Twig.ExpressionParser can break Twig, while a change to Twig can't break Twig.ExpressionParser.
- Position
- Below the diagonal: Twig uses a module listed above it, which is the healthy direction.
20→18 Twig uses Twig.NodeVisitor✕
- Connections
- 3 pairs of types, where a type in Twig uses a type in Twig.NodeVisitor.
- The types involved
Twig.Environment→Twig.NodeVisitor.NodeVisitorInterfaceTwig.ExtensionSet→Twig.NodeVisitor.NodeVisitorInterfaceTwig.NodeTraverser→Twig.NodeVisitor.NodeVisitorInterface
- Direction
- Twig uses Twig.NodeVisitor, so a change to Twig.NodeVisitor can break Twig, while a change to Twig can't break Twig.NodeVisitor.
- Position
- Below the diagonal: Twig uses a module listed above it, which is the healthy direction.
20→19 Twig uses Twig.Extension✕
- Connections
- 2 pairs of types, where a type in Twig uses a type in Twig.Extension.
- The types involved
Twig.Environment→Twig.Extension.ExtensionInterfaceTwig.ExtensionSet→Twig.Extension.ExtensionInterface
- Direction
- Twig uses Twig.Extension, so a change to Twig.Extension can break Twig, while a change to Twig can't break Twig.Extension.
- Position
- Below the diagonal: Twig uses a module listed above it, which is the healthy direction.
21→19 Twig.Extra.Cache uses Twig.Extension✕
- Connections
- 1 pair of types, where a type in Twig.Extra.Cache uses a type in Twig.Extension.
- The types involved
Twig.Extra.Cache.CacheExtension→Twig.Extension.AbstractExtension
- Direction
- Twig.Extra.Cache uses Twig.Extension, so a change to Twig.Extension can break Twig.Extra.Cache, while a change to Twig.Extra.Cache can't break Twig.Extension.
- Position
- Below the diagonal: Twig.Extra.Cache uses a module listed above it, which is the healthy direction.
22→19 Twig.Extra.CssInliner uses Twig.Extension✕
- Connections
- 1 pair of types, where a type in Twig.Extra.CssInliner uses a type in Twig.Extension.
- The types involved
Twig.Extra.CssInliner.CssInlinerExtension→Twig.Extension.AbstractExtension
- Direction
- Twig.Extra.CssInliner uses Twig.Extension, so a change to Twig.Extension can break Twig.Extra.CssInliner, while a change to Twig.Extra.CssInliner can't break Twig.Extension.
- Position
- Below the diagonal: Twig.Extra.CssInliner uses a module listed above it, which is the healthy direction.
23→19 Twig.Extra.Inky uses Twig.Extension✕
- Connections
- 1 pair of types, where a type in Twig.Extra.Inky uses a type in Twig.Extension.
- The types involved
Twig.Extra.Inky.InkyExtension→Twig.Extension.AbstractExtension
- Direction
- Twig.Extra.Inky uses Twig.Extension, so a change to Twig.Extension can break Twig.Extra.Inky, while a change to Twig.Extra.Inky can't break Twig.Extension.
- Position
- Below the diagonal: Twig.Extra.Inky uses a module listed above it, which is the healthy direction.
24→19 Twig.Extra.Markdown uses Twig.Extension✕
- Connections
- 1 pair of types, where a type in Twig.Extra.Markdown uses a type in Twig.Extension.
- The types involved
Twig.Extra.Markdown.MarkdownExtension→Twig.Extension.AbstractExtension
- Direction
- Twig.Extra.Markdown uses Twig.Extension, so a change to Twig.Extension can break Twig.Extra.Markdown, while a change to Twig.Extra.Markdown can't break Twig.Extension.
- Position
- Below the diagonal: Twig.Extra.Markdown uses a module listed above it, which is the healthy direction.
25→19 Twig.Extra.String uses Twig.Extension✕
- Connections
- 1 pair of types, where a type in Twig.Extra.String uses a type in Twig.Extension.
- The types involved
Twig.Extra.String.StringExtension→Twig.Extension.AbstractExtension
- Direction
- Twig.Extra.String uses Twig.Extension, so a change to Twig.Extension can break Twig.Extra.String, while a change to Twig.Extra.String can't break Twig.Extension.
- Position
- Below the diagonal: Twig.Extra.String uses a module listed above it, which is the healthy direction.
26→20 Twig.Attribute uses Twig✕
- Connections
- 3 pairs of types, where a type in Twig.Attribute uses a type in Twig.
- The types involved
Twig.Attribute.AsTwigFilter→Twig.DeprecatedCallableInfoTwig.Attribute.AsTwigFunction→Twig.DeprecatedCallableInfoTwig.Attribute.AsTwigTest→Twig.DeprecatedCallableInfo
- Direction
- Twig.Attribute uses Twig, so a change to Twig can break Twig.Attribute, while a change to Twig.Attribute can't break Twig.
- Position
- Below the diagonal: Twig.Attribute uses a module listed above it, which is the healthy direction.
27→10 Twig.ExpressionParser.Infix uses Twig.Node✕
- Connections
- 1 pair of types, where a type in Twig.ExpressionParser.Infix uses a type in Twig.Node.
- The types involved
Twig.ExpressionParser.Infix.ArgumentsTrait→Twig.Node.Nodes
- Direction
- Twig.ExpressionParser.Infix uses Twig.Node, so a change to Twig.Node can break Twig.ExpressionParser.Infix, while a change to Twig.ExpressionParser.Infix can't break Twig.Node.
- Position
- Below the diagonal: Twig.ExpressionParser.Infix uses a module listed above it, which is the healthy direction.
27→15 Twig.ExpressionParser.Infix uses Twig.Node.Expression✕
- Connections
- 11 pairs of types, where a type in Twig.ExpressionParser.Infix uses a type in Twig.Node.Expression.
- The types involved
Twig.ExpressionParser.Infix.ArgumentsTrait→Twig.Node.Expression.ArrayExpressionTwig.ExpressionParser.Infix.ArrowExpressionParser→Twig.Node.Expression.AbstractExpressionTwig.ExpressionParser.Infix.AssignmentExpressionParser→Twig.Node.Expression.AbstractExpressionTwig.ExpressionParser.Infix.BinaryOperatorExpressionParser→Twig.Node.Expression.AbstractExpressionTwig.ExpressionParser.Infix.ConditionalTernaryExpressionParser→Twig.Node.Expression.AbstractExpressionTwig.ExpressionParser.Infix.DotExpressionParser→Twig.Node.Expression.AbstractExpressionTwig.ExpressionParser.Infix.FilterExpressionParser→Twig.Node.Expression.AbstractExpressionTwig.ExpressionParser.Infix.FunctionExpressionParser→Twig.Node.Expression.AbstractExpressionTwig.ExpressionParser.Infix.IsExpressionParser→Twig.Node.Expression.AbstractExpressionTwig.ExpressionParser.Infix.IsNotExpressionParser→Twig.Node.Expression.AbstractExpressionTwig.ExpressionParser.Infix.SquareBracketExpressionParser→Twig.Node.Expression.AbstractExpression
- Direction
- Twig.ExpressionParser.Infix uses Twig.Node.Expression, so a change to Twig.Node.Expression can break Twig.ExpressionParser.Infix, while a change to Twig.ExpressionParser.Infix can't break Twig.Node.Expression.
- Position
- Below the diagonal: Twig.ExpressionParser.Infix uses a module listed above it, which is the healthy direction.
27→16 Twig.ExpressionParser.Infix uses Twig.ExpressionParser✕
- Connections
- 34 pairs of types, where a type in Twig.ExpressionParser.Infix uses a type in Twig.ExpressionParser. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
- The types involved
Twig.ExpressionParser.Infix.ArrowExpressionParser→Twig.ExpressionParser.AbstractExpressionParserTwig.ExpressionParser.Infix.ArrowExpressionParser→Twig.ExpressionParser.ExpressionParserDescriptionInterfaceTwig.ExpressionParser.Infix.ArrowExpressionParser→Twig.ExpressionParser.InfixAssociativityTwig.ExpressionParser.Infix.ArrowExpressionParser→Twig.ExpressionParser.InfixExpressionParserInterfaceTwig.ExpressionParser.Infix.BinaryOperatorExpressionParser→Twig.ExpressionParser.AbstractExpressionParserTwig.ExpressionParser.Infix.BinaryOperatorExpressionParser→Twig.ExpressionParser.ExpressionParserDescriptionInterfaceTwig.ExpressionParser.Infix.BinaryOperatorExpressionParser→Twig.ExpressionParser.InfixAssociativityTwig.ExpressionParser.Infix.BinaryOperatorExpressionParser→Twig.ExpressionParser.InfixExpressionParserInterfaceTwig.ExpressionParser.Infix.BinaryOperatorExpressionParser→Twig.ExpressionParser.PrecedenceChangeTwig.ExpressionParser.Infix.ConditionalTernaryExpressionParser→Twig.ExpressionParser.AbstractExpressionParserTwig.ExpressionParser.Infix.ConditionalTernaryExpressionParser→Twig.ExpressionParser.ExpressionParserDescriptionInterfaceTwig.ExpressionParser.Infix.ConditionalTernaryExpressionParser→Twig.ExpressionParser.InfixAssociativityTwig.ExpressionParser.Infix.ConditionalTernaryExpressionParser→Twig.ExpressionParser.InfixExpressionParserInterfaceTwig.ExpressionParser.Infix.DotExpressionParser→Twig.ExpressionParser.AbstractExpressionParserTwig.ExpressionParser.Infix.DotExpressionParser→Twig.ExpressionParser.ExpressionParserDescriptionInterfaceTwig.ExpressionParser.Infix.DotExpressionParser→Twig.ExpressionParser.InfixAssociativityTwig.ExpressionParser.Infix.DotExpressionParser→Twig.ExpressionParser.InfixExpressionParserInterfaceTwig.ExpressionParser.Infix.FilterExpressionParser→Twig.ExpressionParser.AbstractExpressionParserTwig.ExpressionParser.Infix.FilterExpressionParser→Twig.ExpressionParser.ExpressionParserDescriptionInterfaceTwig.ExpressionParser.Infix.FilterExpressionParser→Twig.ExpressionParser.InfixAssociativityTwig.ExpressionParser.Infix.FilterExpressionParser→Twig.ExpressionParser.InfixExpressionParserInterfaceTwig.ExpressionParser.Infix.FilterExpressionParser→Twig.ExpressionParser.PrecedenceChangeTwig.ExpressionParser.Infix.FunctionExpressionParser→Twig.ExpressionParser.AbstractExpressionParserTwig.ExpressionParser.Infix.FunctionExpressionParser→Twig.ExpressionParser.ExpressionParserDescriptionInterfaceTwig.ExpressionParser.Infix.FunctionExpressionParser→Twig.ExpressionParser.InfixAssociativity
- Direction
- Twig.ExpressionParser.Infix uses Twig.ExpressionParser, so a change to Twig.ExpressionParser can break Twig.ExpressionParser.Infix, while a change to Twig.ExpressionParser.Infix can't break Twig.ExpressionParser.
- Position
- Below the diagonal: Twig.ExpressionParser.Infix uses a module listed above it, which is the healthy direction.
27→20 Twig.ExpressionParser.Infix uses Twig✕
- Connections
- 21 pairs of types, where a type in Twig.ExpressionParser.Infix uses a type in Twig.
- The types involved
Twig.ExpressionParser.Infix.ArgumentsTrait→Twig.ParserTwig.ExpressionParser.Infix.ArrowExpressionParser→Twig.ParserTwig.ExpressionParser.Infix.ArrowExpressionParser→Twig.TokenTwig.ExpressionParser.Infix.AssignmentExpressionParser→Twig.ParserTwig.ExpressionParser.Infix.AssignmentExpressionParser→Twig.TokenTwig.ExpressionParser.Infix.BinaryOperatorExpressionParser→Twig.ParserTwig.ExpressionParser.Infix.BinaryOperatorExpressionParser→Twig.TokenTwig.ExpressionParser.Infix.ConditionalTernaryExpressionParser→Twig.ParserTwig.ExpressionParser.Infix.ConditionalTernaryExpressionParser→Twig.TokenTwig.ExpressionParser.Infix.DotExpressionParser→Twig.ParserTwig.ExpressionParser.Infix.DotExpressionParser→Twig.TokenTwig.ExpressionParser.Infix.FilterExpressionParser→Twig.ParserTwig.ExpressionParser.Infix.FilterExpressionParser→Twig.TokenTwig.ExpressionParser.Infix.FunctionExpressionParser→Twig.ParserTwig.ExpressionParser.Infix.FunctionExpressionParser→Twig.TokenTwig.ExpressionParser.Infix.IsExpressionParser→Twig.ParserTwig.ExpressionParser.Infix.IsExpressionParser→Twig.TokenTwig.ExpressionParser.Infix.IsNotExpressionParser→Twig.ParserTwig.ExpressionParser.Infix.IsNotExpressionParser→Twig.TokenTwig.ExpressionParser.Infix.SquareBracketExpressionParser→Twig.ParserTwig.ExpressionParser.Infix.SquareBracketExpressionParser→Twig.Token
- Direction
- Twig.ExpressionParser.Infix uses Twig, so a change to Twig can break Twig.ExpressionParser.Infix, while a change to Twig.ExpressionParser.Infix can't break Twig.
- Position
- Below the diagonal: Twig.ExpressionParser.Infix uses a module listed above it, which is the healthy direction.
28→8 Twig.ExpressionParser.Prefix uses Twig.Node.Expression.Variable✕
- Connections
- 1 pair of types, where a type in Twig.ExpressionParser.Prefix uses a type in Twig.Node.Expression.Variable.
- The types involved
Twig.ExpressionParser.Prefix.GroupingExpressionParser→Twig.Node.Expression.Variable.AssignContextVariable
- Direction
- Twig.ExpressionParser.Prefix uses Twig.Node.Expression.Variable, so a change to Twig.Node.Expression.Variable can break Twig.ExpressionParser.Prefix, while a change to Twig.ExpressionParser.Prefix can't break Twig.Node.Expression.Variable.
- Position
- Below the diagonal: Twig.ExpressionParser.Prefix uses a module listed above it, which is the healthy direction.
28→15 Twig.ExpressionParser.Prefix uses Twig.Node.Expression✕
- Connections
- 4 pairs of types, where a type in Twig.ExpressionParser.Prefix uses a type in Twig.Node.Expression.
- The types involved
Twig.ExpressionParser.Prefix.GroupingExpressionParser→Twig.Node.Expression.AbstractExpressionTwig.ExpressionParser.Prefix.LiteralExpressionParser→Twig.Node.Expression.AbstractExpressionTwig.ExpressionParser.Prefix.SpreadExpressionParser→Twig.Node.Expression.AbstractExpressionTwig.ExpressionParser.Prefix.UnaryOperatorExpressionParser→Twig.Node.Expression.AbstractExpression
- Direction
- Twig.ExpressionParser.Prefix uses Twig.Node.Expression, so a change to Twig.Node.Expression can break Twig.ExpressionParser.Prefix, while a change to Twig.ExpressionParser.Prefix can't break Twig.Node.Expression.
- Position
- Below the diagonal: Twig.ExpressionParser.Prefix uses a module listed above it, which is the healthy direction.
28→16 Twig.ExpressionParser.Prefix uses Twig.ExpressionParser✕
- Connections
- 13 pairs of types, where a type in Twig.ExpressionParser.Prefix uses a type in Twig.ExpressionParser.
- The types involved
Twig.ExpressionParser.Prefix.GroupingExpressionParser→Twig.ExpressionParser.AbstractExpressionParserTwig.ExpressionParser.Prefix.GroupingExpressionParser→Twig.ExpressionParser.ExpressionParserDescriptionInterfaceTwig.ExpressionParser.Prefix.GroupingExpressionParser→Twig.ExpressionParser.PrefixExpressionParserInterfaceTwig.ExpressionParser.Prefix.LiteralExpressionParser→Twig.ExpressionParser.AbstractExpressionParserTwig.ExpressionParser.Prefix.LiteralExpressionParser→Twig.ExpressionParser.ExpressionParserDescriptionInterfaceTwig.ExpressionParser.Prefix.LiteralExpressionParser→Twig.ExpressionParser.PrefixExpressionParserInterfaceTwig.ExpressionParser.Prefix.SpreadExpressionParser→Twig.ExpressionParser.AbstractExpressionParserTwig.ExpressionParser.Prefix.SpreadExpressionParser→Twig.ExpressionParser.ExpressionParserDescriptionInterfaceTwig.ExpressionParser.Prefix.SpreadExpressionParser→Twig.ExpressionParser.PrefixExpressionParserInterfaceTwig.ExpressionParser.Prefix.UnaryOperatorExpressionParser→Twig.ExpressionParser.AbstractExpressionParserTwig.ExpressionParser.Prefix.UnaryOperatorExpressionParser→Twig.ExpressionParser.ExpressionParserDescriptionInterfaceTwig.ExpressionParser.Prefix.UnaryOperatorExpressionParser→Twig.ExpressionParser.PrecedenceChangeTwig.ExpressionParser.Prefix.UnaryOperatorExpressionParser→Twig.ExpressionParser.PrefixExpressionParserInterface
- Direction
- Twig.ExpressionParser.Prefix uses Twig.ExpressionParser, so a change to Twig.ExpressionParser can break Twig.ExpressionParser.Prefix, while a change to Twig.ExpressionParser.Prefix can't break Twig.ExpressionParser.
- Position
- Below the diagonal: Twig.ExpressionParser.Prefix uses a module listed above it, which is the healthy direction.
28→20 Twig.ExpressionParser.Prefix uses Twig✕
- Connections
- 8 pairs of types, where a type in Twig.ExpressionParser.Prefix uses a type in Twig.
- The types involved
Twig.ExpressionParser.Prefix.GroupingExpressionParser→Twig.ParserTwig.ExpressionParser.Prefix.GroupingExpressionParser→Twig.TokenTwig.ExpressionParser.Prefix.LiteralExpressionParser→Twig.ParserTwig.ExpressionParser.Prefix.LiteralExpressionParser→Twig.TokenTwig.ExpressionParser.Prefix.SpreadExpressionParser→Twig.ParserTwig.ExpressionParser.Prefix.SpreadExpressionParser→Twig.TokenTwig.ExpressionParser.Prefix.UnaryOperatorExpressionParser→Twig.ParserTwig.ExpressionParser.Prefix.UnaryOperatorExpressionParser→Twig.Token
- Direction
- Twig.ExpressionParser.Prefix uses Twig, so a change to Twig can break Twig.ExpressionParser.Prefix, while a change to Twig.ExpressionParser.Prefix can't break Twig.
- Position
- Below the diagonal: Twig.ExpressionParser.Prefix uses a module listed above it, which is the healthy direction.
29→10 Twig.Extra.Cache.Node uses Twig.Node✕
- Connections
- 1 pair of types, where a type in Twig.Extra.Cache.Node uses a type in Twig.Node.
- The types involved
Twig.Extra.Cache.Node.CacheNode→Twig.Node.Node
- Direction
- Twig.Extra.Cache.Node uses Twig.Node, so a change to Twig.Node can break Twig.Extra.Cache.Node, while a change to Twig.Extra.Cache.Node can't break Twig.Node.
- Position
- Below the diagonal: Twig.Extra.Cache.Node uses a module listed above it, which is the healthy direction.
29→15 Twig.Extra.Cache.Node uses Twig.Node.Expression✕
- Connections
- 1 pair of types, where a type in Twig.Extra.Cache.Node uses a type in Twig.Node.Expression.
- The types involved
Twig.Extra.Cache.Node.CacheNode→Twig.Node.Expression.AbstractExpression
- Direction
- Twig.Extra.Cache.Node uses Twig.Node.Expression, so a change to Twig.Node.Expression can break Twig.Extra.Cache.Node, while a change to Twig.Extra.Cache.Node can't break Twig.Node.Expression.
- Position
- Below the diagonal: Twig.Extra.Cache.Node uses a module listed above it, which is the healthy direction.
29→20 Twig.Extra.Cache.Node uses Twig✕
- Connections
- 1 pair of types, where a type in Twig.Extra.Cache.Node uses a type in Twig.
- The types involved
Twig.Extra.Cache.Node.CacheNode→Twig.Compiler
- Direction
- Twig.Extra.Cache.Node uses Twig, so a change to Twig can break Twig.Extra.Cache.Node, while a change to Twig.Extra.Cache.Node can't break Twig.
- Position
- Below the diagonal: Twig.Extra.Cache.Node uses a module listed above it, which is the healthy direction.
30→10 Twig.Extra.Cache.TokenParser uses Twig.Node✕
- Connections
- 1 pair of types, where a type in Twig.Extra.Cache.TokenParser uses a type in Twig.Node.
- The types involved
Twig.Extra.Cache.TokenParser.CacheTokenParser→Twig.Node.Node
- Direction
- Twig.Extra.Cache.TokenParser uses Twig.Node, so a change to Twig.Node can break Twig.Extra.Cache.TokenParser, while a change to Twig.Extra.Cache.TokenParser can't break Twig.Node.
- Position
- Below the diagonal: Twig.Extra.Cache.TokenParser uses a module listed above it, which is the healthy direction.
30→13 Twig.Extra.Cache.TokenParser uses Twig.TokenParser✕
- Connections
- 1 pair of types, where a type in Twig.Extra.Cache.TokenParser uses a type in Twig.TokenParser.
- The types involved
Twig.Extra.Cache.TokenParser.CacheTokenParser→Twig.TokenParser.AbstractTokenParser
- Direction
- Twig.Extra.Cache.TokenParser uses Twig.TokenParser, so a change to Twig.TokenParser can break Twig.Extra.Cache.TokenParser, while a change to Twig.Extra.Cache.TokenParser can't break Twig.TokenParser.
- Position
- Below the diagonal: Twig.Extra.Cache.TokenParser uses a module listed above it, which is the healthy direction.
30→20 Twig.Extra.Cache.TokenParser uses Twig✕
- Connections
- 1 pair of types, where a type in Twig.Extra.Cache.TokenParser uses a type in Twig.
- The types involved
Twig.Extra.Cache.TokenParser.CacheTokenParser→Twig.Token
- Direction
- Twig.Extra.Cache.TokenParser uses Twig, so a change to Twig can break Twig.Extra.Cache.TokenParser, while a change to Twig.Extra.Cache.TokenParser can't break Twig.
- Position
- Below the diagonal: Twig.Extra.Cache.TokenParser uses a module listed above it, which is the healthy direction.
31→2 Twig.Extra.Html uses Twig.Extra.Html.HtmlAttr✕
- Connections
- 1 pair of types, where a type in Twig.Extra.Html uses a type in Twig.Extra.Html.HtmlAttr.
- The types involved
Twig.Extra.Html.HtmlExtension→Twig.Extra.Html.HtmlAttr.AttributeValueInterface
- Direction
- Twig.Extra.Html uses Twig.Extra.Html.HtmlAttr, so a change to Twig.Extra.Html.HtmlAttr can break Twig.Extra.Html, while a change to Twig.Extra.Html can't break Twig.Extra.Html.HtmlAttr.
- Position
- Below the diagonal: Twig.Extra.Html uses a module listed above it, which is the healthy direction.
31→19 Twig.Extra.Html uses Twig.Extension✕
- Connections
- 1 pair of types, where a type in Twig.Extra.Html uses a type in Twig.Extension.
- The types involved
Twig.Extra.Html.HtmlExtension→Twig.Extension.AbstractExtension
- Direction
- Twig.Extra.Html uses Twig.Extension, so a change to Twig.Extension can break Twig.Extra.Html, while a change to Twig.Extra.Html can't break Twig.Extension.
- Position
- Below the diagonal: Twig.Extra.Html uses a module listed above it, which is the healthy direction.
31→20 Twig.Extra.Html uses Twig✕
- Connections
- 1 pair of types, where a type in Twig.Extra.Html uses a type in Twig.
- The types involved
Twig.Extra.Html.HtmlExtension→Twig.Environment
- Direction
- Twig.Extra.Html uses Twig, so a change to Twig can break Twig.Extra.Html, while a change to Twig.Extra.Html can't break Twig.
- Position
- Below the diagonal: Twig.Extra.Html uses a module listed above it, which is the healthy direction.
32→19 Twig.Extra.Intl uses Twig.Extension✕
- Connections
- 1 pair of types, where a type in Twig.Extra.Intl uses a type in Twig.Extension.
- The types involved
Twig.Extra.Intl.IntlExtension→Twig.Extension.AbstractExtension
- Direction
- Twig.Extra.Intl uses Twig.Extension, so a change to Twig.Extension can break Twig.Extra.Intl, while a change to Twig.Extra.Intl can't break Twig.Extension.
- Position
- Below the diagonal: Twig.Extra.Intl uses a module listed above it, which is the healthy direction.
32→20 Twig.Extra.Intl uses Twig✕
- Connections
- 1 pair of types, where a type in Twig.Extra.Intl uses a type in Twig.
- The types involved
Twig.Extra.Intl.IntlExtension→Twig.Environment
- Direction
- Twig.Extra.Intl uses Twig, so a change to Twig can break Twig.Extra.Intl, while a change to Twig.Extra.Intl can't break Twig.
- Position
- Below the diagonal: Twig.Extra.Intl uses a module listed above it, which is the healthy direction.
33→10 Twig.Node.Expression.Binary uses Twig.Node✕
- Connections
- 22 pairs of types, where a type in Twig.Node.Expression.Binary uses a type in Twig.Node.
- The types involved
Twig.Node.Expression.Binary.AbstractBinary→Twig.Node.NodeTwig.Node.Expression.Binary.AndBinary→Twig.Node.NodeTwig.Node.Expression.Binary.ConcatBinary→Twig.Node.CoercesChildrenToStringInterfaceTwig.Node.Expression.Binary.ElvisBinary→Twig.Node.NodeTwig.Node.Expression.Binary.EqualBinary→Twig.Node.CoercesChildrenToStringInterfaceTwig.Node.Expression.Binary.GreaterBinary→Twig.Node.CoercesChildrenToStringInterfaceTwig.Node.Expression.Binary.GreaterEqualBinary→Twig.Node.CoercesChildrenToStringInterfaceTwig.Node.Expression.Binary.InBinary→Twig.Node.CoercesChildrenToStringInterfaceTwig.Node.Expression.Binary.LessBinary→Twig.Node.CoercesChildrenToStringInterfaceTwig.Node.Expression.Binary.LessEqualBinary→Twig.Node.CoercesChildrenToStringInterfaceTwig.Node.Expression.Binary.MatchesBinary→Twig.Node.CoercesChildrenToStringInterfaceTwig.Node.Expression.Binary.MatchesBinary→Twig.Node.NodeTwig.Node.Expression.Binary.NotEqualBinary→Twig.Node.CoercesChildrenToStringInterfaceTwig.Node.Expression.Binary.NotInBinary→Twig.Node.CoercesChildrenToStringInterfaceTwig.Node.Expression.Binary.NullCoalesceBinary→Twig.Node.NodeTwig.Node.Expression.Binary.ObjectDestructuringSetBinary→Twig.Node.NodeTwig.Node.Expression.Binary.OrBinary→Twig.Node.NodeTwig.Node.Expression.Binary.RangeBinary→Twig.Node.CoercesChildrenToStringInterfaceTwig.Node.Expression.Binary.SequenceDestructuringSetBinary→Twig.Node.NodeTwig.Node.Expression.Binary.SetBinary→Twig.Node.NodeTwig.Node.Expression.Binary.SpaceshipBinary→Twig.Node.CoercesChildrenToStringInterfaceTwig.Node.Expression.Binary.XorBinary→Twig.Node.Node
- Direction
- Twig.Node.Expression.Binary uses Twig.Node, so a change to Twig.Node can break Twig.Node.Expression.Binary, while a change to Twig.Node.Expression.Binary can't break Twig.Node.
- Position
- Below the diagonal: Twig.Node.Expression.Binary uses a module listed above it, which is the healthy direction.
33→15 Twig.Node.Expression.Binary uses Twig.Node.Expression✕
- Connections
- 35 pairs of types, where a type in Twig.Node.Expression.Binary uses a type in Twig.Node.Expression. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
- The types involved
Twig.Node.Expression.Binary.AbstractBinary→Twig.Node.Expression.AbstractExpressionTwig.Node.Expression.Binary.AddBinary→Twig.Node.Expression.ReturnNumberInterfaceTwig.Node.Expression.Binary.AndBinary→Twig.Node.Expression.ReturnBoolInterfaceTwig.Node.Expression.Binary.BinaryInterface→Twig.Node.Expression.AbstractExpressionTwig.Node.Expression.Binary.BitwiseAndBinary→Twig.Node.Expression.ReturnNumberInterfaceTwig.Node.Expression.Binary.BitwiseOrBinary→Twig.Node.Expression.ReturnNumberInterfaceTwig.Node.Expression.Binary.BitwiseXorBinary→Twig.Node.Expression.ReturnNumberInterfaceTwig.Node.Expression.Binary.ConcatBinary→Twig.Node.Expression.ReturnStringInterfaceTwig.Node.Expression.Binary.DivBinary→Twig.Node.Expression.ReturnNumberInterfaceTwig.Node.Expression.Binary.ElvisBinary→Twig.Node.Expression.OperatorEscapeInterfaceTwig.Node.Expression.Binary.EndsWithBinary→Twig.Node.Expression.ReturnBoolInterfaceTwig.Node.Expression.Binary.EqualBinary→Twig.Node.Expression.ReturnBoolInterfaceTwig.Node.Expression.Binary.FloorDivBinary→Twig.Node.Expression.ReturnNumberInterfaceTwig.Node.Expression.Binary.GreaterBinary→Twig.Node.Expression.ReturnBoolInterfaceTwig.Node.Expression.Binary.GreaterEqualBinary→Twig.Node.Expression.ReturnBoolInterfaceTwig.Node.Expression.Binary.HasEveryBinary→Twig.Node.Expression.ReturnBoolInterfaceTwig.Node.Expression.Binary.HasSomeBinary→Twig.Node.Expression.ReturnBoolInterfaceTwig.Node.Expression.Binary.InBinary→Twig.Node.Expression.ReturnBoolInterfaceTwig.Node.Expression.Binary.LessBinary→Twig.Node.Expression.ReturnBoolInterfaceTwig.Node.Expression.Binary.LessEqualBinary→Twig.Node.Expression.ReturnBoolInterfaceTwig.Node.Expression.Binary.MatchesBinary→Twig.Node.Expression.ReturnBoolInterfaceTwig.Node.Expression.Binary.ModBinary→Twig.Node.Expression.ReturnNumberInterfaceTwig.Node.Expression.Binary.MulBinary→Twig.Node.Expression.ReturnNumberInterfaceTwig.Node.Expression.Binary.NotEqualBinary→Twig.Node.Expression.ReturnBoolInterfaceTwig.Node.Expression.Binary.NotInBinary→Twig.Node.Expression.ReturnBoolInterface
- Direction
- Twig.Node.Expression.Binary uses Twig.Node.Expression, so a change to Twig.Node.Expression can break Twig.Node.Expression.Binary, while a change to Twig.Node.Expression.Binary can't break Twig.Node.Expression.
- Position
- Below the diagonal: Twig.Node.Expression.Binary uses a module listed above it, which is the healthy direction.
33→20 Twig.Node.Expression.Binary uses Twig✕
- Connections
- 37 pairs of types, where a type in Twig.Node.Expression.Binary uses a type in Twig. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
- The types involved
Twig.Node.Expression.Binary.AbstractBinary→Twig.CompilerTwig.Node.Expression.Binary.AddBinary→Twig.CompilerTwig.Node.Expression.Binary.AndBinary→Twig.CompilerTwig.Node.Expression.Binary.BitwiseAndBinary→Twig.CompilerTwig.Node.Expression.Binary.BitwiseOrBinary→Twig.CompilerTwig.Node.Expression.Binary.BitwiseXorBinary→Twig.CompilerTwig.Node.Expression.Binary.ConcatBinary→Twig.CompilerTwig.Node.Expression.Binary.DivBinary→Twig.CompilerTwig.Node.Expression.Binary.ElvisBinary→Twig.CompilerTwig.Node.Expression.Binary.EndsWithBinary→Twig.CompilerTwig.Node.Expression.Binary.EqualBinary→Twig.CompilerTwig.Node.Expression.Binary.FloorDivBinary→Twig.CompilerTwig.Node.Expression.Binary.GreaterBinary→Twig.CompilerTwig.Node.Expression.Binary.GreaterEqualBinary→Twig.CompilerTwig.Node.Expression.Binary.HasEveryBinary→Twig.CompilerTwig.Node.Expression.Binary.HasSomeBinary→Twig.CompilerTwig.Node.Expression.Binary.InBinary→Twig.CompilerTwig.Node.Expression.Binary.LessBinary→Twig.CompilerTwig.Node.Expression.Binary.LessEqualBinary→Twig.CompilerTwig.Node.Expression.Binary.MatchesBinary→Twig.CompilerTwig.Node.Expression.Binary.ModBinary→Twig.CompilerTwig.Node.Expression.Binary.MulBinary→Twig.CompilerTwig.Node.Expression.Binary.NotEqualBinary→Twig.CompilerTwig.Node.Expression.Binary.NotInBinary→Twig.CompilerTwig.Node.Expression.Binary.NotSameAsBinary→Twig.Compiler
- Direction
- Twig.Node.Expression.Binary uses Twig, so a change to Twig can break Twig.Node.Expression.Binary, while a change to Twig.Node.Expression.Binary can't break Twig.
- Position
- Below the diagonal: Twig.Node.Expression.Binary uses a module listed above it, which is the healthy direction.
34→10 Twig.Node.Expression.FunctionNode uses Twig.Node✕
- Connections
- 1 pair of types, where a type in Twig.Node.Expression.FunctionNode uses a type in Twig.Node.
- The types involved
Twig.Node.Expression.FunctionNode.RenderSandboxedFunction→Twig.Node.Node
- Direction
- Twig.Node.Expression.FunctionNode uses Twig.Node, so a change to Twig.Node can break Twig.Node.Expression.FunctionNode, while a change to Twig.Node.Expression.FunctionNode can't break Twig.Node.
- Position
- Below the diagonal: Twig.Node.Expression.FunctionNode uses a module listed above it, which is the healthy direction.
34→15 Twig.Node.Expression.FunctionNode uses Twig.Node.Expression✕
- Connections
- 3 pairs of types, where a type in Twig.Node.Expression.FunctionNode uses a type in Twig.Node.Expression.
- The types involved
Twig.Node.Expression.FunctionNode.EnumCasesFunction→Twig.Node.Expression.FunctionExpressionTwig.Node.Expression.FunctionNode.EnumFunction→Twig.Node.Expression.FunctionExpressionTwig.Node.Expression.FunctionNode.RenderSandboxedFunction→Twig.Node.Expression.FunctionExpression
- Direction
- Twig.Node.Expression.FunctionNode uses Twig.Node.Expression, so a change to Twig.Node.Expression can break Twig.Node.Expression.FunctionNode, while a change to Twig.Node.Expression.FunctionNode can't break Twig.Node.Expression.
- Position
- Below the diagonal: Twig.Node.Expression.FunctionNode uses a module listed above it, which is the healthy direction.
34→20 Twig.Node.Expression.FunctionNode uses Twig✕
- Connections
- 3 pairs of types, where a type in Twig.Node.Expression.FunctionNode uses a type in Twig.
- The types involved
Twig.Node.Expression.FunctionNode.EnumCasesFunction→Twig.CompilerTwig.Node.Expression.FunctionNode.EnumFunction→Twig.CompilerTwig.Node.Expression.FunctionNode.RenderSandboxedFunction→Twig.Compiler
- Direction
- Twig.Node.Expression.FunctionNode uses Twig, so a change to Twig can break Twig.Node.Expression.FunctionNode, while a change to Twig.Node.Expression.FunctionNode can't break Twig.
- Position
- Below the diagonal: Twig.Node.Expression.FunctionNode uses a module listed above it, which is the healthy direction.
35→15 Twig.Node.Expression.Ternary uses Twig.Node.Expression✕
- Connections
- 2 pairs of types, where a type in Twig.Node.Expression.Ternary uses a type in Twig.Node.Expression.
- The types involved
Twig.Node.Expression.Ternary.ConditionalTernary→Twig.Node.Expression.AbstractExpressionTwig.Node.Expression.Ternary.ConditionalTernary→Twig.Node.Expression.OperatorEscapeInterface
- Direction
- Twig.Node.Expression.Ternary uses Twig.Node.Expression, so a change to Twig.Node.Expression can break Twig.Node.Expression.Ternary, while a change to Twig.Node.Expression.Ternary can't break Twig.Node.Expression.
- Position
- Below the diagonal: Twig.Node.Expression.Ternary uses a module listed above it, which is the healthy direction.
35→20 Twig.Node.Expression.Ternary uses Twig✕
- Connections
- 1 pair of types, where a type in Twig.Node.Expression.Ternary uses a type in Twig.
- The types involved
Twig.Node.Expression.Ternary.ConditionalTernary→Twig.Compiler
- Direction
- Twig.Node.Expression.Ternary uses Twig, so a change to Twig can break Twig.Node.Expression.Ternary, while a change to Twig.Node.Expression.Ternary can't break Twig.
- Position
- Below the diagonal: Twig.Node.Expression.Ternary uses a module listed above it, which is the healthy direction.
36→10 Twig.Node.Expression.Test uses Twig.Node✕
- Connections
- 2 pairs of types, where a type in Twig.Node.Expression.Test uses a type in Twig.Node.
- The types involved
Twig.Node.Expression.Test.DefinedTest→Twig.Node.NodeTwig.Node.Expression.Test.TrueTest→Twig.Node.Node
- Direction
- Twig.Node.Expression.Test uses Twig.Node, so a change to Twig.Node can break Twig.Node.Expression.Test, while a change to Twig.Node.Expression.Test can't break Twig.Node.
- Position
- Below the diagonal: Twig.Node.Expression.Test uses a module listed above it, which is the healthy direction.
36→15 Twig.Node.Expression.Test uses Twig.Node.Expression✕
- Connections
- 8 pairs of types, where a type in Twig.Node.Expression.Test uses a type in Twig.Node.Expression.
- The types involved
Twig.Node.Expression.Test.ConstantTest→Twig.Node.Expression.TestExpressionTwig.Node.Expression.Test.DefinedTest→Twig.Node.Expression.TestExpressionTwig.Node.Expression.Test.DivisiblebyTest→Twig.Node.Expression.TestExpressionTwig.Node.Expression.Test.EvenTest→Twig.Node.Expression.TestExpressionTwig.Node.Expression.Test.NullTest→Twig.Node.Expression.TestExpressionTwig.Node.Expression.Test.OddTest→Twig.Node.Expression.TestExpressionTwig.Node.Expression.Test.SameasTest→Twig.Node.Expression.TestExpressionTwig.Node.Expression.Test.TrueTest→Twig.Node.Expression.TestExpression
- Direction
- Twig.Node.Expression.Test uses Twig.Node.Expression, so a change to Twig.Node.Expression can break Twig.Node.Expression.Test, while a change to Twig.Node.Expression.Test can't break Twig.Node.Expression.
- Position
- Below the diagonal: Twig.Node.Expression.Test uses a module listed above it, which is the healthy direction.
36→20 Twig.Node.Expression.Test uses Twig✕
- Connections
- 8 pairs of types, where a type in Twig.Node.Expression.Test uses a type in Twig.
- The types involved
Twig.Node.Expression.Test.ConstantTest→Twig.CompilerTwig.Node.Expression.Test.DefinedTest→Twig.CompilerTwig.Node.Expression.Test.DivisiblebyTest→Twig.CompilerTwig.Node.Expression.Test.EvenTest→Twig.CompilerTwig.Node.Expression.Test.NullTest→Twig.CompilerTwig.Node.Expression.Test.OddTest→Twig.CompilerTwig.Node.Expression.Test.SameasTest→Twig.CompilerTwig.Node.Expression.Test.TrueTest→Twig.Compiler
- Direction
- Twig.Node.Expression.Test uses Twig, so a change to Twig can break Twig.Node.Expression.Test, while a change to Twig.Node.Expression.Test can't break Twig.
- Position
- Below the diagonal: Twig.Node.Expression.Test uses a module listed above it, which is the healthy direction.
37→10 Twig.Node.Expression.Unary uses Twig.Node✕
- Connections
- 2 pairs of types, where a type in Twig.Node.Expression.Unary uses a type in Twig.Node.
- The types involved
Twig.Node.Expression.Unary.AbstractUnary→Twig.Node.NodeTwig.Node.Expression.Unary.NotUnary→Twig.Node.Node
- Direction
- Twig.Node.Expression.Unary uses Twig.Node, so a change to Twig.Node can break Twig.Node.Expression.Unary, while a change to Twig.Node.Expression.Unary can't break Twig.Node.
- Position
- Below the diagonal: Twig.Node.Expression.Unary uses a module listed above it, which is the healthy direction.
37→15 Twig.Node.Expression.Unary uses Twig.Node.Expression✕
- Connections
- 3 pairs of types, where a type in Twig.Node.Expression.Unary uses a type in Twig.Node.Expression.
- The types involved
Twig.Node.Expression.Unary.AbstractUnary→Twig.Node.Expression.AbstractExpressionTwig.Node.Expression.Unary.NotUnary→Twig.Node.Expression.ReturnBoolInterfaceTwig.Node.Expression.Unary.UnaryInterface→Twig.Node.Expression.AbstractExpression
- Direction
- Twig.Node.Expression.Unary uses Twig.Node.Expression, so a change to Twig.Node.Expression can break Twig.Node.Expression.Unary, while a change to Twig.Node.Expression.Unary can't break Twig.Node.Expression.
- Position
- Below the diagonal: Twig.Node.Expression.Unary uses a module listed above it, which is the healthy direction.
37→20 Twig.Node.Expression.Unary uses Twig✕
- Connections
- 6 pairs of types, where a type in Twig.Node.Expression.Unary uses a type in Twig.
- The types involved
Twig.Node.Expression.Unary.AbstractUnary→Twig.CompilerTwig.Node.Expression.Unary.NegUnary→Twig.CompilerTwig.Node.Expression.Unary.NotUnary→Twig.CompilerTwig.Node.Expression.Unary.PosUnary→Twig.CompilerTwig.Node.Expression.Unary.SpreadUnary→Twig.CompilerTwig.Node.Expression.Unary.StringCastUnary→Twig.Compiler
- Direction
- Twig.Node.Expression.Unary uses Twig, so a change to Twig can break Twig.Node.Expression.Unary, while a change to Twig.Node.Expression.Unary can't break Twig.
- Position
- Below the diagonal: Twig.Node.Expression.Unary uses a module listed above it, which is the healthy direction.
38→10 Twig.Profiler.Node uses Twig.Node✕
- Connections
- 2 pairs of types, where a type in Twig.Profiler.Node uses a type in Twig.Node.
- The types involved
Twig.Profiler.Node.EnterProfileNode→Twig.Node.NodeTwig.Profiler.Node.LeaveProfileNode→Twig.Node.Node
- Direction
- Twig.Profiler.Node uses Twig.Node, so a change to Twig.Node can break Twig.Profiler.Node, while a change to Twig.Profiler.Node can't break Twig.Node.
- Position
- Below the diagonal: Twig.Profiler.Node uses a module listed above it, which is the healthy direction.
38→20 Twig.Profiler.Node uses Twig✕
- Connections
- 2 pairs of types, where a type in Twig.Profiler.Node uses a type in Twig.
- The types involved
Twig.Profiler.Node.EnterProfileNode→Twig.CompilerTwig.Profiler.Node.LeaveProfileNode→Twig.Compiler
- Direction
- Twig.Profiler.Node uses Twig, so a change to Twig can break Twig.Profiler.Node, while a change to Twig.Profiler.Node can't break Twig.
- Position
- Below the diagonal: Twig.Profiler.Node uses a module listed above it, which is the healthy direction.
39→10 Twig.Profiler.NodeVisitor uses Twig.Node✕
- Connections
- 1 pair of types, where a type in Twig.Profiler.NodeVisitor uses a type in Twig.Node.
- The types involved
Twig.Profiler.NodeVisitor.ProfilerNodeVisitor→Twig.Node.Node
- Direction
- Twig.Profiler.NodeVisitor uses Twig.Node, so a change to Twig.Node can break Twig.Profiler.NodeVisitor, while a change to Twig.Profiler.NodeVisitor can't break Twig.Node.
- Position
- Below the diagonal: Twig.Profiler.NodeVisitor uses a module listed above it, which is the healthy direction.
39→18 Twig.Profiler.NodeVisitor uses Twig.NodeVisitor✕
- Connections
- 1 pair of types, where a type in Twig.Profiler.NodeVisitor uses a type in Twig.NodeVisitor.
- The types involved
Twig.Profiler.NodeVisitor.ProfilerNodeVisitor→Twig.NodeVisitor.NodeVisitorInterface
- Direction
- Twig.Profiler.NodeVisitor uses Twig.NodeVisitor, so a change to Twig.NodeVisitor can break Twig.Profiler.NodeVisitor, while a change to Twig.Profiler.NodeVisitor can't break Twig.NodeVisitor.
- Position
- Below the diagonal: Twig.Profiler.NodeVisitor uses a module listed above it, which is the healthy direction.
39→20 Twig.Profiler.NodeVisitor uses Twig✕
- Connections
- 1 pair of types, where a type in Twig.Profiler.NodeVisitor uses a type in Twig.
- The types involved
Twig.Profiler.NodeVisitor.ProfilerNodeVisitor→Twig.Environment
- Direction
- Twig.Profiler.NodeVisitor uses Twig, so a change to Twig can break Twig.Profiler.NodeVisitor, while a change to Twig.Profiler.NodeVisitor can't break Twig.
- Position
- Below the diagonal: Twig.Profiler.NodeVisitor uses a module listed above it, which is the healthy direction.
40→10 src.Resources uses Twig.Node✕
- Connections
- 1 pair of types, where a type in src.Resources uses a type in Twig.Node.
- The types involved
src.Resources.escaper→Twig.Node.Node
- Direction
- src.Resources uses Twig.Node, so a change to Twig.Node can break src.Resources, while a change to src.Resources can't break Twig.Node.
- Position
- Below the diagonal: src.Resources uses a module listed above it, which is the healthy direction.
40→20 src.Resources uses Twig✕
- Connections
- 6 pairs of types, where a type in src.Resources uses a type in Twig.
- The types involved
src.Resources.core→Twig.Environmentsrc.Resources.core→Twig.Sourcesrc.Resources.debug→Twig.Environmentsrc.Resources.escaper→Twig.Environmentsrc.Resources.string_loader→Twig.Environmentsrc.Resources.string_loader→Twig.TemplateWrapper
- Direction
- src.Resources uses Twig, so a change to Twig can break src.Resources, while a change to src.Resources can't break Twig.
- Position
- Below the diagonal: src.Resources uses a module listed above it, which is the healthy direction.
At a glance — Code Health
At a glance — Architecture
At a glance — Maturity
At a glance — Readiness
At a glance — Security
Security & Compliance — OWASP Top-10 mapping
| OWASP category | Findings | Severity |
|---|---|---|
| A05:2025 — Injection | 15 | High / Critical |
Roadmap
Begin by documenting significant design decisions in a dedicated folder to establish a clear architectural record. Next, enforce strict nullable reference type checking to identify and resolve null safety issues rather than silencing them. Finally, update the README with essential onboarding and architecture details, and address bus factor risks by distributing sole ownership and preparing for off-boarding.
| Do this | Helps | Effort | Dimension |
|---|---|---|---|
| Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them. | +8.6 pts | Medium | Architecture documentation |
| Raise PHPStan to level 8 (`level: 8` in `phpstan.neon.dist`, or `max`) or Psalm to `errorLevel="3"` or stricter, so `?Type` is a type the checker holds you to; generate a baseline for what that surfaces only to pay it down, not to keep it. Then resolve the baselined nullness errors rather than adding to them: each is a call on a value the checker showed could be null — narrow it (`if ($x === null) { … }`, `?->`, an early return), make the property non-nullable and initialise it in the constructor, or change the return type so the null cannot arrive. | +6.4 pts | Medium | Nullable reference types |
| Resolve the 1 Further sole-owners (lower concentration) finding(s) in Bus Factor. | +3.1 pts | Low | Bus Factor |
| Resolve the 1 Off-boarding risk finding(s) in Bus Factor. | +3.1 pts | Low | Bus Factor |
| Expand the README with getting-started, architecture overview and a project map. | +5.0 pts | Medium | Documentation (README) |
| Swallowed exception (caught, then discarded) | +1.7 pts | Medium | Exception handling |
| Bring the 2 bodies over 60 down to 60 or less in Cognitive Complexity — start with CoreExtension.getAttribute (cognitive 140), EscaperRuntime.escape (cognitive 81). | +0.8 pts | Medium | Cognitive Complexity |
| Resolve the 2 Documentation finding(s) in Documentation Quality — start with README.rst (2). | +0.7 pts | Low | Documentation Quality |
File quality
| File | Score | Band | Worst signal |
|---|---|---|---|
| REDACTED | 4.4 | Mixed | Static Analysis (SAST): High: REDACTED |
| REDACTED | 4.6 | Mixed | Static Analysis (SAST): High: REDACTED |
| extra/intl-extra/IntlExtension.php | 5.6 | Mixed | Cyclomatic Complexity: IntlExtension.createDateFormatter (cyclomatic 29) |
| src/ExpressionParser.php | 5.7 | Mixed | Cyclomatic Complexity: ExpressionParser.parseArguments (cyclomatic 19) |
| src/Extension/CoreExtension.php | 7.0 | Mixed | Cyclomatic Complexity: CoreExtension.getAttribute (cyclomatic 80) |
| src/Node/Expression/CallExpression.php | 7.0 | Mixed | Cyclomatic Complexity: CallExpression.getArguments (cyclomatic 32) |
| src/TwigFilter.php | 7.0 | Mixed | Code Duplication: Duplicated block (31 lines × 2) |
| tests/LexerTest.php | 7.0 | Mixed | Test Quality: No assertions: testLongComments |
| tests/ParserTest.php | 7.1 | Mixed | Test Quality: No assertions: testGetVarName |
| src/Parser.php | 7.1 | Mixed | Cyclomatic Complexity: Parser.subparse (cyclomatic 18) |
| tests/Extension/SandboxTest.php | 7.1 | Mixed | Test Quality: No assertions: testSandboxForExtendsAndUseTags |
| src/Runtime/EscaperRuntime.php | 7.2 | Mixed | Cyclomatic Complexity: EscaperRuntime.escape (cyclomatic 57) |
| extra/html-extra/HtmlExtension.php | 7.2 | Mixed | Cyclomatic Complexity: HtmlExtension.htmlAttrValue (cyclomatic 21) |
| tests/ExpressionParserTest.php | 7.2 | Mixed | Test Quality: No assertions: testMacroDefinitionSupportsConstantDefaultValues |
| REDACTED | 7.2 | Mixed | Static Analysis (SAST): High: REDACTED |
| REDACTED | 7.2 | Mixed | Static Analysis (SAST): High: REDACTED |
| src/NodeVisitor/SandboxNodeVisitor.php | 7.4 | Mixed | Cyclomatic Complexity: SandboxNodeVisitor.enterNode (cyclomatic 31) |
| src/ExtensionSet.php | 7.4 | Mixed | Cyclomatic Complexity: ExtensionSet.initExtension (cyclomatic 20) |
| src/Util/CallableArgumentsExtractor.php | 7.8 | Mixed | Cyclomatic Complexity: CallableArgumentsExtractor.extractArguments (cyclomatic 34) |
| src/Lexer.php | 7.8 | Mixed | Cyclomatic Complexity: Lexer.stripcslashes (cyclomatic 23) |
How the grades work
A definite problem that already costs you something and drags the score down: a missing authorisation check, a dependency with a known exploit, a build that does not reproduce. Failure here tends to cause failures elsewhere.
Likely wrong, but not failing yet. It degrades the codebase over a longer horizon and can cause failures elsewhere — not urgent this week, not something to carry for two years either.
Recorded, with no effect on how the codebase functions. Present so the survey is complete, not because it needs doing.
Something this survey could not settle from the outside, and which could be critical or serious. Either a control was required and no positive evidence of it exists in the repository — a backup job that nothing shows was ever restored from proves nothing about restores — or our own analysis could not run over that part of the tree. This is not a clean result. These are excluded from the score rather than awarded a pass, so the number on the cover neither rewards nor penalises them: if you act on this survey without resolving them, you carry that risk yourself. Each one is named under Limitations.
Methodology & how to trust this report
Watchdog is a deep, periodic assessment — run each sprint, monthly, or quarterly, taking the time to go wider and deeper than a quick check and surfacing in one coherent report what you'd otherwise piece together from a dozen separate tools. It scores deterministically: the same commit yields the same score, every run. 44 of 48 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 4 documentation/naming judgement(s) are LLM-assisted and labelled advisory. Overall confidence is 0.9 — the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.
What we checked — 48 dimensions across the health lenses
- Can you open the finding? Real findings cite a repo-relative file and line you can open at the cited line — never an absolute scratch path. Here, 224 of 234 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line.
- Is there a tool behind the number? Every score below names the method that produced it — Roslyn, git, a scanner, or (for a handful of documentation/naming dimensions) an LLM labelled sampled · advisory — not a narrative.
- Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.
Tools & methods
| Method | Backs | Version | Evaluator |
|---|---|---|---|
| Roslyn static analysis | Complexity, cohesion, coupling, dead code, API surface, layering | 5.3.0 | ✓ deterministic |
| Native secret scanner | Hardcoded secrets / credentials | 1.0.0 | ✓ deterministic |
| Watchdog duplication detector (in-process) | Code duplication | 1.0.0 | ✓ deterministic |
| Coverage (coverlet / dotnet-coverage) | Line & branch coverage | 10.0.400 | ✓ deterministic |
| NuGet / dotnet | Outdated, vulnerable & deprecated dependencies | 10.0.400 | ✓ deterministic |
| git / LibGit2Sharp | Churn hotspots, knowledge concentration, history | 2.43.0 · 0.31.0 | ✓ deterministic |
| gitleaks · semgrep · trivy | Secrets in history, SAST, CVEs, IaC & container, PII / GDPR | 1.86.0 · 0.69.3 | ✓ deterministic |
| LLM (sampled · advisory) | Documentation quality, ADR conformance, naming — sampled over a bounded sample; advisory, never a deterministic measurement | Local LLM | ◐ LLM · sampled · advisory |
Run transparency — what happened this run
- D8 Code Coverage — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Coverage NOT MEASURED: test source is present (.php) but the built-in coverage collector has no runner for this repository's ecosystem — so this suite was never executed by it. Not scored — this is a gap in the analyzer's language coverage, not a defect in the repo. To have real coverage read, produce a coverage report in a standard format (Clover XML — with Xdebug (`XDEBUG_MODE=coverage`) or PCOV installed, `vendor/bin/phpunit --coverage-clover coverage.xml`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures. You can widen what we reach: optional: produce a coverage report in a standard format (Clover XML — with Xdebug (`XDEBUG_MODE=coverage`) or PCOV installed, `vendor/bin/phpunit --coverage-clover coverage.xml`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures — then the real number is read on the next scan.
- D11 Test Reliability — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Test source is present (.php) but the built-in reliability runner does not support this repository's ecosystem, so flakiness couldn't be assessed. Not scored — this is a gap in the analyzer's language coverage, not a finding about this repository.
- D12 Dependency Hygiene — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Not scored — 3 direct Composer requirement(s) were read, but the outdated signal needs Packagist, and no committed composer.lock resolves them to releases, so this dimension's own question is only partly answered. NOT a finding that these dependencies are current or healthy.
- D14 License Compliance — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Not scored — this repository declares a composer.json but commits no composer.lock this pass can read, so the set of packages it installs is not on disk: its composer.json states version CONSTRAINTS, and Composer's guidance is that a library leaves the lock uncommitted. Producing the graph needs Composer's solver, which this pass does not run, and grading whichever release happens to be newest today would be a verdict about a dependency graph nobody resolved. NOT a finding that this repository's licences are compliant: this dimension asserts nothing about its licensing in either direction.
- D27 Navigability — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Navigability is taken over call sites whose callee resolved. For C# that population includes calls into referenced assemblies; for this language only calls declared inside the repository count, so the abstention threshold reads the repository's use of its standard library as a resolution failure. That is a limit of this analyzer, not a build problem in this repository.
- D32 Data Compliance (PII/GDPR) — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. `extra/html-extra/HtmlAttr/InlineStyle.php`, `extra/html-extra/HtmlAttr/SeparatedTokenList.php`, `src/ExpressionParser/Prefix/GroupingExpressionParser.php` produced a parse error, so every rule in this engine's `gdpr.yml` was absent there. That absence is NOT a clean result: these rules detect personal data crossing a boundary into a log sink, a URL or browser storage, and a file that was never parsed cannot report any of the three. The rest of the tree analysed normally and its rows above stand; only these files are unaccounted for. You can widen what we reach: fix the syntax error (or exclude the file deliberately) and re-scan to cover it.
- AX1 Captive dependencies — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads Microsoft.Extensions.DependencyInjection registrations in C# and Spring beans in Java/Kotlin only, and this repository's container is Symfony DependencyInjection and a PSR-11 container (Psr\Container) and an unrecognised PHP container, whose lifetimes are not modelled yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- AX6 Interface segregation — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is computed over the public interfaces this run's compilations declare, and none was loaded, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- GD1 Unfinished & placeholder code — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, F#, JavaScript/TypeScript, Dart, Ruby and Scala source only, and no C#, F#, JavaScript/TypeScript, Dart, Ruby or Scala was found, and this repository's PHP is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- IC1 Incompleteness & stubs — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, JavaScript/TypeScript, Java, Dart, Ruby and Scala source only, and no C#, JavaScript/TypeScript, Java, Dart, Ruby or Scala was found, and this repository's PHP is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- P5 DR & Backup — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. No backup/snapshot/replication config, RTO/RPO or restore-procedure documentation was found — and no production persistence was detected either (no data-access packages, no data-store services, no database resources), so there is nothing in this repository whose loss a DR control would recover. If this system's data lives in a platform or ops repo we can't see, that's where the DR evidence belongs.
- S1 Web-Security Posture — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These web-security controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks web-security controls.
- X1 Async correctness — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Python, Dart, Ruby, Scala, Rust and Kotlin source only, and no C# was loaded and no JavaScript/TypeScript, Python, Dart, Ruby, Scala, Rust or Kotlin was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X12 Unreachable branch — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Python, Dart, Ruby, Scala and Kotlin source only, and no C# was loaded and no JavaScript/TypeScript, Python, Dart, Ruby, Scala or Kotlin was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X13 Undrained process stream — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Python, Dart, Ruby, Scala and Kotlin source only, and no C# was loaded and no JavaScript/TypeScript, Python, Dart, Ruby, Scala or Kotlin was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X17 Uncapped recursion over a caller-supplied document — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Python, Dart, Ruby, Scala and Kotlin source only, and no C# was loaded and no JavaScript/TypeScript, Python, Dart, Ruby, Scala or Kotlin was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X24 Document value interpolated into markup unescaped — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Java, Scala, Ruby and Python source only, and no C# was loaded and no JavaScript/TypeScript, Java, Scala, Ruby or Python was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X27 Collection changed while being enumerated — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and Java, Rust, Erlang, F#, Python, Dart, Ruby, Scala and Kotlin source only, and no C# was loaded, no Java, Rust, Erlang, F#, Python, Dart, Ruby, Scala or Kotlin was found, and this repository's PHP is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X29 Per-element action decided by a fixed element — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Java, Rust, Dart, Ruby, Scala and Kotlin source only, and no C# was loaded and no JavaScript/TypeScript, Java, Rust, Dart, Ruby, Scala or Kotlin was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X4 Structured logging — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Java, Kotlin, Python, PHP, Dart, Ruby, Scala and Rust source only, and no C# was loaded, and this repository's JavaScript/TypeScript, Python and PHP make no call through a named logger, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
Limitations & what we did not check
Watchdog assesses the repository exactly as committed, and only the repository. By design it does not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.
Per-dimension blind spots
- D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
- D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
- D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
- D4 Code Duplication: Duplication is token-similarity — an in-process token-stream comparison over sliding windows, with type-aware normalization — so it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (scaffolded migrations, designer/codegen output, protobuf/OpenAPI stubs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only.
- D5 Coupling: Coupling is measured between projects/assemblies — runtime coupling through DI, reflection, messaging or shared databases is invisible to a static reference graph.
- D6 Cohesion (LCOM4): LCOM4 cohesion is syntactic — it infers connectivity from which methods touch which fields/methods by name, not from real runtime behaviour or intent.
- D9 Test Distribution: The test-pyramid shape is inferred from project/folder naming and references, with a single test host bucketed per-file by its path tier and content signals — a suite that names tiers unconventionally and gives no per-file signal can still be mis-bucketed.
- D10 Test Quality: Assertion density is structural — it cannot tell a meaningful behavioural assertion from a trivial one, only that an assertion is present.
- D13 Secret Scanning: Secret detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
- D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
- D16 Bus Factor: Bus-factor is a time-decayed model of commit attribution (who has recently, repeatedly worked a file), not comprehension — pairing, review and reading-without-committing spread knowledge it can't see; bot commits and shared accounts still distort it.
- D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
- D19 Documentation Quality: Documentation quality is judged by an LLM over a bounded sample of docs — it reads what is written, not whether the docs match the running system, and it is advisory, not a measurement. Its critique rows are drawn from a closed category vocabulary and each row means the same thing in every run, so two scans can be compared row by row; the SET that fires is still a sample, and does not repeat exactly. Measured on one frozen input, six scans at one engine SHA: 2-5 critique rows per scan, 8 distinct rows across the six, 3 of those 8 seen in only one scan. So a D19 row is evidence about the documentation, but a COUNT of D19 rows is not a quantity — never read a change in it as an improvement or a regression.
- D21 Naming Consistency: Naming quality is an LLM judgement over a bounded sample — it assesses clarity/consistency of the names it sees, not domain-correctness, and is advisory.
- D22 Internal API Consistency: API-surface coherence is an LLM judgement over a sample of the public surface — consistency of intent across the whole API is approximated, not exhaustively verified.
- D26 Project Cohesion: Project focus is sized from members/namespaces per project — a project that is broad by deliberate design reads the same as one that has sprawled.
- D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
- D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
- D30 Dependency Vulnerabilities: CVE matching depends on accurate package/version metadata and on the advisory databases — a vulnerability with no published advisory, or in code not declared as a dependency, is not seen. Coverage needs a RESOLVED graph: an unpinned requirements.txt, or a pom without a resolved build, yields partial coverage rather than a clean verdict. An ecosystem the analyzer cannot scan is reported as unmeasured, never as clean.
- D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
- D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
- D43 Malicious Dependencies: Only packages some vulnerability database has already NAMED as malicious are seen — a compromise published in the last hours, or never reported at all, is invisible here, and this dimension reading 10 is not evidence that a dependency is trustworthy. There is no typosquat or dependency-confusion analysis: a package nobody has reported is simply absent from the feeds. Coverage is the dependency scan's: an ecosystem that could not be scanned is disclosed as unmeasured, never as clean.
- D44 Platform End-of-Life: The support table is FROZEN, so it goes out of date by losing RECALL: a release that ended support after the table was written is missed until the table is refreshed, and this dimension reading 10 is not evidence that a platform is current. Only platforms the repository DECLARES in a place this pass reads are seen — a runtime named only in a Dockerfile (D31's subject), in a CI workflow (D29's), or in a file this pass does not parse (go.mod, a Gemfile ruby directive) is invisible here, which is why a repository declaring none of them abstains rather than scoring. Only frameworks with a PUBLISHED support policy are tracked: React, Flask and Express publish none, so their age cannot be judged and their absence from a report is not a statement that they are supported.
- AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
- M4 Documentation accuracy: Onboarding quality is an LLM read of the docs/setup present — it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
- P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.
The LLM boundary
Dimensions
D1 · Cyclomatic Complexity
26 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was CoreExtension.getAttribute at 80. A further 2 method(s) were over the threshold but excluded as flat dispatchers (a long switch/match over independent cases: many branches, almost no nesting), the largest being Token.typeToString at 17 — they are counted neither in the figure above nor in this dimension's score.
What to do
- Bring the 1 body over 60 down to 60 or less in Cyclomatic Complexity — start with CoreExtension.getAttribute (cyclomatic 80). — Refactoring it lifts Cyclomatic Complexity from 6.2 to about 6.5/10.
- Enforce Cyclomatic Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D2 · Cognitive Complexity
41 method(s) exceeded the cognitive complexity threshold of 15; the worst was CoreExtension.getAttribute at 140.
What to do
- Bring the 2 bodies over 60 down to 60 or less in Cognitive Complexity — start with CoreExtension.getAttribute (cognitive 140), EscaperRuntime.escape (cognitive 81). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 2 together lifts Cognitive Complexity from 4.9 to about 6.1/10, projected with the scoring formula itself and assuming each lands exactly at 60; a cleaner split scores higher.
- Enforce Cognitive Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D3 · God Classes
11 god class(es) detected.
What to do
- Resolve the 7 TooManyMethods finding(s) in God Classes — start with CoreExtension.php, Environment.php, core.php. — One of this dimension's main actionable groups (7 warning-level).
- Resolve the 2 MethodTooLong finding(s) in God Classes — start with CoreExtension.php, EscaperRuntime.php. — One of this dimension's main actionable groups (2 warning-level).
- Resolve the 1 ClassTooLong finding(s) in God Classes — start with CoreExtension.php. — One of this dimension's main actionable groups (1 warning-level).
- Enforce God Classes in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D4 · Code Duplication
26 duplicated block group(s) detected. One further row reports members as variants of one another; it aggregates block groups already counted above and is not itself counted.
What to do
- Resolve the 3 Duplicated block (6 lines × 2) finding(s) in Code Duplication — start with AbstractBinary.php, CallExpression.php, FunctionExpression.php. — One of this dimension's main actionable groups (3 warning-level).
- Resolve the 2 Duplicated block (11 lines × 2) finding(s) in Code Duplication — start with CallExpression.php, SetNode.php. — One of this dimension's main actionable groups (2 warning-level).
- Resolve the 2 Duplicated block (8 lines × 2) finding(s) in Code Duplication — start with FilesystemLoader.php, BlockTokenParser.php. — One of this dimension's main actionable groups (2 warning-level).
- Enforce Code Duplication in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
D5 · Coupling
9 production modules (Composer), 0 dependency cycle(s), 0 unstable depended-on module(s). Read from the build's own module declarations; 0 module(s) off the main sequence.
D6 · Cohesion (LCOM4)
3 of 56 classes have LCOM4 above 3.
What to do
- Resolve the 3 Low cohesion finding(s) in Cohesion (LCOM4) — start with IntlExtension.php, FilesystemCache.php, StagingExtension.php. — One of this dimension's main actionable groups (3 warning-level).
- Enforce Cohesion (LCOM4) in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
D9 · Test Distribution
815 test methods: 815 unit, 0 integration, 0 BDD, 0 e2e.
D10 · Test Quality
8 skipped (8 with a documented reason), 48 zero-assertion, no mocking-framework packages referenced (hand-written doubles or no mocking) across 815 tests.
What to do
- Resolve the 36 No assertions finding(s) in Test Quality — start with LexerTest.php (16), ParserTest.php (6), SandboxTest.php (5). — One of this dimension's main actionable groups (36 warning-level).
- Enforce Test Quality in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D13 · Secret Scanning
Secret scan ran and found no leaked secrets.
D15 · Churn × Complexity Hotspots
Top hotspots: src/Extension/CoreExtension.php (15×80=1200); src/Parser.php (11×18=198); extra/intl-extra/IntlExtension.php (5×29=145)
What to do
- Resolve the 6 Hotspot finding(s) in Churn × Complexity Hotspots — start with CoreExtension.php, Parser.php, IntlExtension.php. — One of this dimension's main actionable groups (6 warning-level).
D16 · Bus Factor
31 source file(s) have their living knowledge concentrated in one author (≥90% of recent, decayed contribution). The largest is src/Parser.php. Counted over 80 of the 297 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
What to do
- Resolve the 1 Off-boarding risk finding(s) in Bus Factor. — One of this dimension's main actionable groups (1 recommendation-level).
- Resolve the 1 Further sole-owners (lower concentration) finding(s) in Bus Factor. — One of this dimension's main actionable groups (1 recommendation-level).
D17 · Explicit Debt
0 deducted task-comment markers across 24719 LoC (0.0/KLoC) → score 10.0. Task comments only: this repository's language is read without a compiler, so D17's suppression, dead-code and commented-out-code arms did not run and this score counts fewer marker kinds than a .NET repository's would.
D19 · Documentation Quality
The repository's root README (README.rst) and its sibling extra directories all describe Twig extensions that provide specific filters, functions, or tags for the template language; they are well written with a clear overview plus installation, usage examples, and links to the official documentation. The architecture/design docs (doc/advanced.rst, doc/backward_compatibility.rst, doc/documentation_comments.rst) give comprehensive coverage of Twig's API, backward compatibility promise, deprecated features, and internals, making them ideal for an advanced reference. All documents are well structured with headings and a table of contents. This repository's documentation is excellent. The root README gives a clear overview of Twig as the flexible template engine for PHP and lists its key features plus an unbroken list of prerequisites, installation, basic API usage, and a recipe for removing deprecations (with a tip on collecting notices from files or tests). It also documents the sandbox security model with a warning about treating templates as trusted code. A dedicated Twig for Template Designers document covers syntax, semantics, variables, tags, delimiters, third-party integrations, and filters such as abs(), batch(), and more. The architecture/design docs are large (142 markdown files) but not shown in the summary; given the visible content is comprehensive, this quality score reflects a well-structured, complete reference set.
D21 · Naming Consistency
0 naming inconsistencies across 0 sampled symbols.
D22 · Internal API Consistency
1 API inconsistencies across a 400-member sample of 284 exposed types.
What to do
- Resolve the 1 Inconsistent naming convention for singular vs plural retrieval methods.… finding(s) in Internal API Consistency. — One of this dimension's main actionable groups (1 warning-level).
D26 · Project Cohesion
1 of 9 build units (Composer) flagged as possibly oversized/incoherent.
What to do
- Resolve the 1 Projects may be oversized for their cohesion finding(s) in Project Cohesion. — One of this dimension's main actionable groups (1 recommendation-level).
D28 · Secrets (history)
gitleaks scanned the full history AND the current working tree and found no secrets.
D29 · Static Analysis (SAST)
15 finding(s): 0 critical, 15 high, 0 medium, 0 low. 13 unpinned-GitHub-Actions row(s) are reported here but scored by D36 (supply-chain provenance), which measures that posture as `pinned_actions` — one pinning decision is charged once, not once per lens. semgrep hit a parse error in 5 file(s) — `extra/html-extra/HtmlAttr/InlineStyle.php` (line 21), `extra/html-extra/HtmlAttr/SeparatedTokenList.php` (line 21, line 23), `extra/html-extra/Tests/HtmlAttrMergeTest.php` (line 197), `extra/html-extra/Tests/HtmlAttrTest.php` (line 412, line 437, line 454), `src/ExpressionParser/Prefix/GroupingExpressionParser.php` (line 62) — so no absence of findings in the named regions is evidence of anything; rows reported elsewhere in those files are real. Fix the syntax error (or exclude the file deliberately) and re-scan to cover them. Separately, one or more rules could not re-parse an embedded snippet in 1 file(s) (e.g. a workflow `run:` block read as shell). Those files WERE scanned and their other rows are unaffected; only those rules' view of those snippets is missing.
What to do
- Resolve the 1 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
- Resolve the 1 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
- No action in Static Analysis (SAST) — all 12 REDACTED finding(s) are reported here at file:line but scored by D36 (supply-chain provenance), so none is charged to this dimension. — One of this dimension's main actionable groups (12 issue-level, 0 of them charged here).
D30 · Dependency Vulnerabilities
No known-vulnerable dependencies in any ecosystem this repository declares.
D34 · Knowledge Freshness
1 of 80 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is extra/html-extra/HtmlAttr/MergeableInterface.php. Counted over 80 of the 297 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
D35 · Change Coupling
Strongest change-coupling: TwigFilter.php↔TwigFunction.php 92%; ExpressionParser.php↔SafeAnalysisNodeVisitor.php 57%
What to do
- Resolve the 2 Change coupling finding(s) in Change Coupling — start with TwigFilter.php, ExpressionParser.php. — One of this dimension's main actionable groups (2 warning-level).
D37 · Vulnerability-disclosure Policy
A vulnerability-disclosure policy (.github/SECURITY.md) is published with a reporting contact.
D43 · Malicious Dependencies
No dependency in any ecosystem this repository declares is published as malicious.
D44 · Platform End-of-Life
0 end-of-life runtime(s) and 0 end-of-life framework(s), read from 0 platform declaration(s) and 3 dependency declaration(s). This dimension reads what the repository says about ITSELF — a pinned target framework, a version file, a capped requires-python, a Rust toolchain pin, a framework major a constraint cannot move off. A FLOOR is deliberately never charged: `requires-python = ">=3.8"` states what the package SUPPORTS, not what it runs on, and a well-maintained library declares exactly that while running its own CI on a current release. The end-of-life facts are FROZEN and dated, so this dimension needs no network and answers identically inside a closed scan fence; as the table ages it loses recall and never precision, because a statement about support that ended in the past cannot become false. The OS layer of a container image is D31's question and the toolchain a CI workflow installs is D29's; this row is neither.
Frontend & cross-cutting dimensions
AX10 · Code composition
What to do
- The domain core is a small share of production code, but most of the rest matched no layer vocabulary at all — so this is not yet an anemic-domain finding. The namespace/path convention could not place that code, which makes the composition above a statement about the naming, not about the design. Name the layers (or check that the repository's conventions differ from the ones this check knows) before reading a thin domain into it.
AX3 · Project dependency cycles
AX4 · Dependency direction
M1 · Documentation (README)
- The root README is 60 words, against a bar of 120. Of the three newcomer-critical sections this check looks for by heading, it found no a build/run or getting-started section, no a testing section, no an architecture or project-map section. Sections are matched on HEADING text only, so material written under a heading this check does not recognise — or with no heading at all — is not seen and this row may understate what the document covers.
- 148 code files changed in the last 6 months but the README was not touched — it may no longer reflect the system.
What to do
- Expand the README with getting-started, architecture overview and a project map.
- Add a build/run (quick start) section to the root README — the first thing a newcomer needs.
- Explain in the README how to run the tests. Add a section called Testing to the README in the repository's top folder, saying how to run the test suite.
- Add an 'Architecture' / 'How it works' section to the root README — the high-level shape.
- Add a README to the 1 of 9 project(s) that lack one — worth up to 0.2 pts.
- Review the README against recent changes; refresh the parts that drifted.
M2 · Architecture documentation
- No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
- No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named `architecture` or `design` in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape — no `## Architecture` heading, no "architecture overview"/"high-level design" phrasing, no "the architecture is …" introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document — not evidence that nobody wrote the shape down.
What to do
- Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
- Add a C4 context/container diagram (Structurizr, PlantUML or Mermaid) or an architecture.md overview.
M3 · Folder & project structure
M4 · Documentation accuracy
- README claims Blackfire.io as a sponsor but there is no Blackfire.io package or file in the repository — searched for: `Blackfire.io`. Each was matched case- and separator-insensitively against file and directory NAMES anywhere in the tree, and against the CONTENTS of manifest and configuration files (package.json and other *.json, *.csproj, *.props, *.sln/*.slnx, *.yml, *.toml, *.config, tool configs such as eslint.config.js, Dockerfile); the README's own prose never counts, so a claim is never refuted by merely being made. Nothing outside that search was read — a footprint living only in a submodule, in a file type not listed here, or under a name none of those terms matches is not seen, and this row is then wrong. — README.rst:1
- doc/advanced.rst names `Twig\Extension\CoreExtension`, but no file or folder `Twig/Extension/CoreExtension` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — doc/advanced.rst:839
- doc/advanced.rst names `Twig\Extension\AttributeExtension`, but no file or folder `Twig/Extension/AttributeExtension` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — doc/advanced.rst:895
- doc/api.rst names `Twig\Sandbox\Sandbox`, but no file or folder `Twig/Sandbox/Sandbox` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — doc/api.rst:623
- doc/deprecated.rst names `Twig\Node\MacroNode`, but no file or folder `Twig/Node/MacroNode` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — doc/deprecated.rst:16
- doc/deprecated.rst names `Twig\Extension\EscaperExtension`, but no file or folder `Twig/Extension/EscaperExtension` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — doc/deprecated.rst:55
- doc/deprecated.rst names `Twig\Node\Node`, but no file or folder `Twig/Node/Node` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — doc/deprecated.rst:73
- doc/deprecated.rst names `Twig\Node\Expression\FilterExpression`, but no file or folder `Twig/Node/Expression/FilterExpression` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — doc/deprecated.rst:99
- doc/deprecated.rst names `Twig\Node\Expression\FunctionExpression`, but no file or folder `Twig/Node/Expression/FunctionExpression` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — doc/deprecated.rst:109
- doc/deprecated.rst names `Twig\Node\Expression\TestExpression`, but no file or folder `Twig/Node/Expression/TestExpression` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — doc/deprecated.rst:187
- doc/deprecated.rst names `Twig\Node\Expression\Variable\TemplateVariable`, but no file or folder `Twig/Node/Expression/Variable/TemplateVariable` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — doc/deprecated.rst:194
- doc/deprecated.rst names `Twig\Node\Expression\Variable\AssignTemplateVariable`, but no file or folder `Twig/Node/Expression/Variable/AssignTemplateVariable` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — doc/deprecated.rst:195
- doc/deprecated.rst names `Twig\Node\Expression\Variable\ContextVariable`, but no file or folder `Twig/Node/Expression/Variable/ContextVariable` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — doc/deprecated.rst:203
- doc/deprecated.rst names `Twig\Node\Expression\Variable\AssignContextVariable`, but no file or folder `Twig/Node/Expression/Variable/AssignContextVariable` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — doc/deprecated.rst:206
- doc/deprecated.rst names `Twig\Node\Expression\Binary\NullCoalesceBinary`, but no file or folder `Twig/Node/Expression/Binary/NullCoalesceBinary` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — doc/deprecated.rst:219
- doc/deprecated.rst names `Twig\Node\Expression\Ternary\ConditionalTernary`, but no file or folder `Twig/Node/Expression/Ternary/ConditionalTernary` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — doc/deprecated.rst:223
- doc/deprecated.rst names `Twig\Node\Expression\SupportDefinedTestInterface`, but no file or folder `Twig/Node/Expression/SupportDefinedTestInterface` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — doc/deprecated.rst:226
- doc/deprecated.rst names `Twig\NodeVisitor\NodeVisitorInterface`, but no file or folder `Twig/NodeVisitor/NodeVisitorInterface` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — doc/deprecated.rst:250
- doc/deprecated.rst names `Twig\Node\Expression\MacroReferenceExpression`, but no file or folder `Twig/Node/Expression/MacroReferenceExpression` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — doc/deprecated.rst:362
- doc/deprecated.rst names `Twig\Sandbox\SecurityPolicy`, but no file or folder `Twig/Sandbox/SecurityPolicy` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — doc/deprecated.rst:384
- doc/deprecated.rst names `Twig\TokenParser\AbstractTokenParser`, but no file or folder `Twig/TokenParser/AbstractTokenParser` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — doc/deprecated.rst:395
- doc/deprecated.rst names `Twig\Extension\SandboxExtension`, but no file or folder `Twig/Extension/SandboxExtension` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — doc/deprecated.rst:422
- doc/deprecated.rst names `Twig\Sandbox\Sandbox`, but no file or folder `Twig/Sandbox/Sandbox` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — doc/deprecated.rst:424
- doc/deprecated.rst names `Twig\Test\IntegrationTestCase`, but no file or folder `Twig/Test/IntegrationTestCase` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — doc/deprecated.rst:470
- doc/sandbox.rst names `Twig\Sandbox\Sandbox`, but no file or folder `Twig/Sandbox/Sandbox` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — doc/sandbox.rst:20
- doc/sandbox.rst names `Twig\Sandbox\SecurityError`, but no file or folder `Twig/Sandbox/SecurityError` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — doc/sandbox.rst:76
- doc/functions/include.rst names `Twig\Sandbox\Sandbox`, but no file or folder `Twig/Sandbox/Sandbox` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — doc/functions/include.rst:47
- doc/tags/sandbox.rst names `Twig\Sandbox\Sandbox`, but no file or folder `Twig/Sandbox/Sandbox` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — doc/tags/sandbox.rst:7
What to do
- Reconcile the README with reality: README claims Blackfire.io as a sponsor but there is no Blackfire.io package or file in the repository; doc/advanced.rst names `Twig\Extension\CoreExtension`, but no file or folder `Twig/Extension/CoreExtension` exists; doc/advanced.rst names `Twig\Extension\AttributeExtension`, but no file or folder `Twig/Extension/AttributeExtension` exists; doc/api.rst names `Twig\Sandbox\Sandbox`, but no file or folder `Twig/Sandbox/Sandbox` exists; doc/deprecated.rst names `Twig\Node\MacroNode`, but no file or folder `Twig/Node/MacroNode` exists.
P1 · CI/CD gates
P10 · Library API & versioning
P3 · Security & performance tooling
What to do
- Dependabot is configured but does not watch `composer` — add that `package-ecosystem` entry to REDACTED so those dependencies get the same automatic update and advisory pressure as the ones it already covers.
- Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P6 · Release Hygiene
X14 · Bypassable address classification
X15 · Unvalidated length from an untrusted reader
X16 · Unfloored truncation loop
X18 · Disposal-pattern correctness
X19 · Unrestored process-global state
- `repr` changes state that belongs to the whole PROCESS and changes it back at the end of the same body — the `serialize_precision` ini setting (changed at line 166, put back at line 171) — which says the change was meant to last no longer than this call. But the restore is an ordinary statement on the straight-line path, not a `finally`, so it is skipped by any exception thrown in between: PHP then keeps the overwritten value for the rest of the request — and in a CLI command, a queue worker or a long-running server (Octane, Swoole, RoadRunner, FrankenPHP) for the rest of the process's life — and every later relative path, child-process launch, date, number format, XML parse or error report in ANY class reads it. That failure is silent and remote from its cause: the function that breaks is not the function that moved the value. The durable fix is not to widen the restore but to stop mutating the global: pass the value to the operation that needs it — `cwd` and `env` to Symfony `Process` (`new Process($command, $cwd, $env)`) or `proc_open($command, $spec, $pipes, $cwd, $env)`, absolute paths instead of `chdir`, an explicit `DateTimeZone` or locale to `DateTimeImmutable`/`IntlDateFormatter`/`NumberFormatter`, an explicit encoding to the `mb_*` call, `LIBXML_NOERROR`/`libxml_get_errors` handling in one place. Where the global genuinely must move, wrap it `try`/`finally` so the restore runs on every path. — src/Compiler.php:162
- `collect` changes state that belongs to the whole PROCESS and changes it back at the end of the same body — the error handler (changed at line 57, reset at line 73) — which says the change was meant to last no longer than this call. But the restore is an ordinary statement on the straight-line path, not a `finally`, so it is skipped by any exception thrown in between: PHP then keeps the overwritten value for the rest of the request — and in a CLI command, a queue worker or a long-running server (Octane, Swoole, RoadRunner, FrankenPHP) for the rest of the process's life — and every later relative path, child-process launch, date, number format, XML parse or error report in ANY class reads it. That failure is silent and remote from its cause: the function that breaks is not the function that moved the value. The durable fix is not to widen the restore but to stop mutating the global: pass the value to the operation that needs it — `cwd` and `env` to Symfony `Process` (`new Process($command, $cwd, $env)`) or `proc_open($command, $spec, $pipes, $cwd, $env)`, absolute paths instead of `chdir`, an explicit `DateTimeZone` or locale to `DateTimeImmutable`/`IntlDateFormatter`/`NumberFormatter`, an explicit encoding to the `mb_*` call, `LIBXML_NOERROR`/`libxml_get_errors` handling in one place. Where the global genuinely must move, wrap it `try`/`finally` so the restore runs on every path. — src/Util/DeprecationCollector.php:54
What to do
- Each finding names the statement that changes the process-global value and the statement that puts it back. Confirm from the two that nothing between them is protected — then prefer removing the mutation over widening the restore: a `cwd` and `env` passed to Symfony `Process` or `proc_open`, an absolute path, or an explicit `DateTimeZone`/locale/encoding argument is scoped to that operation, which is what the save-and-restore was trying to approximate. Where the global genuinely must move (an error handler around a call that warns), a `try`/`finally` is the least that makes the restore unconditional.
X21 · Side-effecting pattern guard
X22 · Contradicted release guard
X23 · Unguarded diagnostic materialisation
X25 · Inert configuration knob
X28 · Index access outside its own emptiness guard
X3 · Exception handling
- `catch (\Throwable)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. — src/Util/CallableParameters.php:157
What to do
- Swallowed exception (caught, then discarded)
X30 · Support guard that admits what it rejects
X5 · Nullable reference types
- 0/1 of this repository's PHPStan/Psalm configuration(s) run at a level that checks null — PHPStan level 8 or above (`max` included), or Psalm `errorLevel` 3 or below (Psalm's default, with none stated, is 1). A PHPStan level written neither in the file nor in an include inside the repository is 0, PHPStan's own default. Below those levels the checker removes `null` from a union before any rule looks, so `$order->customer()->name()` on a `?Customer` passes, and the first null reaching it is an `Error: Call to a member function name() on null` in production.
What to do
- Raise PHPStan to level 8 (`level: 8` in `phpstan.neon.dist`, or `max`) or Psalm to `errorLevel="3"` or stricter, so `?Type` is a type the checker holds you to; generate a baseline for what that surfaces only to pay it down, not to keep it. Then resolve the baselined nullness errors rather than adding to them: each is a call on a value the checker showed could be null — narrow it (`if ($x === null) { … }`, `?->`, an early return), make the property non-nullable and initialise it in the constructor, or change the return type so the null cannot arrive.
Reference — by lens
| Lens | Score | Rating | Impact |
|---|---|---|---|
| Code Health | 57% | Adequate — gated by X5 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Architecture | 96% | Exemplary | Strongest area. |
| Maturity | 49% | Weak — gated by M2 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Readiness | 90% | Exemplary | Solid. |
| Security | 95% | Exemplary | Solid. |
Unscored — 1 check(s) recorded observations but carry no score
- X10 Duplicated predicate — 3 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not evidenced — 2 control(s) we could not find positive evidence for
- P4 Deployment & Rollback — not evidenced — no deploy/rollback/approval signal in the repo; absence of evidence is not evidence of a manual release
- P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
Not included — 69 check(s) not relevant to this codebase
- AC1 Text alternatives — No web markup found — accessibility is not applicable to this repository.
- AC2 Forms & labels — No web markup found — accessibility is not applicable to this repository.
- AC3 Page structure — No web markup found — accessibility is not applicable to this repository.
- AC4 Keyboard semantics — No web markup found — accessibility is not applicable to this repository.
- AC5 ARIA correctness — No web markup found — accessibility is not applicable to this repository.
- AC6 Visual & motion safety — No web markup found — accessibility is not applicable to this repository.
- AC7 A11y enforcement — No web markup found — accessibility is not applicable to this repository.
- AX1 Captive dependencies — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- AX2 Stateful singletons — Not applicable: PHP builds its object graph per request and shares none of it between requests.
- AX5 Architecture & structure — not assessed — architecture style/structure is computed from a project graph (projects, types, module namespaces) that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- AX6 Interface segregation — not assessed — interface segregation is computed over a type surface that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- AX7 Slice cohesion — not applicable — not a vertical-slice architecture
- AX8 Test isolation — no test/production split to check
- AX9 CQS / query purity — no CQRS query handlers detected — query purity is not applicable to this codebase
- AXB1 Runtime evidence locked — no reproducible boot — This repository has nothing the runtime tiers could boot or serve — no markup, no UI framework or web-server dependency, no UI component source, no native UI project and no API definition — nothing here is a surface to boot — so runtime a11y/egress/header evidence has no subject here. Not applicable: this is neither a gap in the scan nor a finding about your code.
- AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- C1 Data Protection — No personal data detected in a persisted data model — no PII-named field (email, first_name, date_of_birth, phone, …) or stored credential in a Laravel migration, an Eloquent $fillable/$hidden list or a Doctrine #[ORM\Column] property — and no database client (PDO, mysqli, Laravel's DB facade, $wpdb) in the source either, so this repository keeps no data at rest for these controls to protect.
- C2 Access Controls — No access-control surface detected in the analyzed source — this repository registers no route (no Laravel Route::…, no Symfony #[Route], no Filament panel, no WordPress REST route or AJAX action). Access control is therefore N/A here — a Composer library is authorized by the application that mounts it, not by itself. If this codebase grows request handlers, the dimension reactivates and a default-deny posture is expected then.
- C3 Audit Trail — No personal data detected in a persisted data model — no PII-named field (email, first_name, date_of_birth, phone_number, …) or stored credential in a Laravel migration, an Eloquent model's $fillable/$hidden list or a Doctrine #[ORM\Column] property — and no database client (PDO, mysqli, Laravel's DB facade, $wpdb) in the source either, so this repository keeps no sensitive data whose changes an audit trail would record. If it does (through a hosted backend configured outside this repository, for instance), the trail belongs to wherever that data is stored.
- C4 Data Retention — No personal data detected in a persisted data model — no PII-named field (email, first_name, date_of_birth, phone, …) or stored credential in a Laravel migration, an Eloquent $fillable/$hidden list or a Doctrine #[ORM\Column] property — and no database client (PDO, mysqli, Laravel's DB facade, $wpdb) in the source either, so this repository keeps no personal data whose lifetime a retention limit would bound.
- C5 Data-Subject Rights — No personal data detected in a persisted data model — no PII-named field (email, first_name, date_of_birth, phone, …) or stored credential in a Laravel migration, an Eloquent $fillable/$hidden list or a Doctrine #[ORM\Column] property — and no database client (PDO, mysqli, Laravel's DB facade, $wpdb) in the source either, so this repository keeps no personal data for a data subject to erase, export or consent over.
- D11 Test Reliability — Test reliability not included — no .php test runner
- D12 Dependency Hygiene — Not scored — 3 direct Composer requirement(s) were read, but the outdated signal needs Packagist, and no committed composer.lock resolves them to releases, so this dimension's own question is only partly answered. NOT a finding that these dependencies are current or healthy.
- D14 License Compliance — Composer package licences not graded — this repository commits no composer.lock and this pass does not run Composer's solver
- D18 Solution Shape — D18 scores the shape of a .NET solution; this repository has no .NET solution or project files, so the dimension does not apply.
- D20 ADR Quality — N/A — ADRs are expected on deployable products with a user-facing host, not consumed libraries; no ADR log is required here.
- D23 Boundary Type-Coupling — No bounded-context organisation was detected either — neither a context-shaped layout, nor 2+ sibling source directories each declaring an aggregate root, nor 2+ projects each declaring an entity of their own. Declaring this codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
- D24 Comment Value — No inline comments to assess — comment value is not applicable here.
- D25 ADR Conformance — no ADRs to check
- D27 Navigability — D27 counts a call into the standard library or a dependency as unresolved for this repository's language (.php), so too few call sites counted as resolved to assess navigability. Not scored: this is a gap in the analyzer, not a verdict about this repository.
- D31 IaC & Container Security — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.
- D32 Data Compliance (PII/GDPR) — 3 file(s) were not parsed by semgrep — the PII/GDPR ruleset never ran over them
- D36 Supply-chain Provenance & Signing — The CI pipeline builds and tests but publishes no released artifact — no package publish, container push, GitHub release or deployment step. Supply-chain provenance, signing and SBOM attest RELEASED artifacts, so there is nothing to attest here. Add them to the release pipeline when this repo starts shipping artifacts (a published package, a container image, a deployed service or a tagged release).
- D39 IL Efficiency — D39 measures the IL emitted by a .NET build; this repository has no .NET solution or project files, so the dimension does not apply.
- D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
- D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
- D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
- D7 Architectural Integrity — no checkable ADRs, and no project-reference graph for the cycle pass to read — so this dimension makes no claim about dependency cycles in either direction (where this repository's language has an import-cycle lens, cycles are reported there). Architectural integrity not assessed
- D8 Code Coverage — Coverage not included — suite not readable by the collector
- DM1 Domain Modelling — not scored — this repository shows only 1 of the 3 signals this lens looks for (4 value object(s))
- ED1 Event-Driven — not scored — this repository shows none of the 3 signals this lens looks for
- ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency check not applicable
- ES1 Event Sourcing — not scored — this repository shows none of the 3 signals this lens looks for
- GD1 Unfinished & placeholder code — no source files were read — this check reads C#, F#, JavaScript/TypeScript, Dart, Ruby and Scala, and none was read for this repository's product. That is a limit of the analyzer, not a finding about your code.
- IC1 Incompleteness & stubs — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- P12 CI test-gate honesty — Reported, not scored — and nothing was matched here. The coverage check applies to any stack, and the automatic-re-run check to any GitHub-Actions workflow, but the checks for excluded tests, skipped tests and sleep-based synchronisation currently recognise only some ecosystems' test-runner idioms, so on a repository built with another stack the zeros below mean 'not checked', not 'clean'.
- P2 Observability — This repository's PHP source (9 module(s), 319 file(s) read) declares no entry point and bootstraps no server, and nothing here deploys a service — it is a library, run inside whatever hosts it, so production observability (structured logging, tracing/metrics, health checks) is N/A. If it grows a binary or a service, the dimension reactivates.
- P7 Outbound HTTP resilience — not applicable — no HTTP server, API framework or worker entry point was found in the PHP source, so there is no service whose uptime a failing dependency could take down
- P8 Schema migrations — no ORM, schema-migration tool or schema auto-create was found in this repository's dependency manifests or source, so there is no database schema for this check to judge
- P9 Domain vs controller coverage — no coverage report found on disk — produce a coverage report in a standard format (Clover XML — with Xdebug (`XDEBUG_MODE=coverage`) or PCOV installed, `vendor/bin/phpunit --coverage-clover coverage.xml`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures, or wire coverage collection into CI, to enable this cross-layer check
- PF1 Benchmark discipline — Not applicable: no benchmark suite was found. This check searched for PHPBench subjects (`bench*` methods, or `@Subject`/`#[Subject]` ones) in a file importing PhpBench or carrying its annotations, `bench*` methods in a `*Bench.php` file where PHPBench is installed, or phpbench/phpbench in a composer.json or a phpbench.json, and for a `*benchmark*` script that this repository's CI runs. Benchmarks are credited as a bonus, so their absence is neither scored nor deducted.
- PF2 Allocation hygiene — Not applicable: PHP runs on a garbage-collected runtime that gives a program no allocation-control idiom to choose on a hot path — no pools, stack allocation or value types — so allocation awareness is not something this code can be rated on.
- PF3 Async & latency hygiene — Not applicable: PHP has no async/await function colour, so there is no asynchronous code for a blocking call to stall.
- S1 Web-Security Posture — Not assessed: these web-security controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks web-security controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
- X1 Async correctness — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X12 Unreachable branch — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X13 Undrained process stream — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X17 Uncapped recursion over a caller-supplied document — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X2 Cancellation propagation — no C# was loaded; this repository's PHP was read and makes no request a caller can cancel (amphp's HttpClient or connect) — synchronous PHP offers its callers no cancellation to take
- X20 Mistyped argument guard — This check asks whether an argument guard reports an EMPTY value as a NULL one, which needs a language that throws a null-specific argument exception — .NET's ArgumentNullException, the JVM's NullPointerException, Dart's ArgumentError.notNull. This repository contains none of those languages: the ones it is written in have a single exception for a bad argument, so there is no pair of exceptions to confuse and nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
- X24 Document value interpolated into markup unescaped — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X26 Unsynchronised callback handoff — Not applicable: this check looks for a collection written by a callback on one thread while the body waiting on it touches it on another, and in this repository's languages no collection is reachable from two threads at once. PHP gives a request one thread of its own; the event-loop libraries (ReactPHP, Amp) run callbacks one at a time, and ext-parallel copies every value across its channels, so no array or collection is reachable from two threads at once. Not a gap in the analyzer and not a finding about your code.
- X27 Collection changed while being enumerated — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X29 Per-element action decided by a fixed element — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X32 Type resolved by simple name across every loaded assembly — This check is about how a .NET program searches the assemblies loaded into its process for a type, and this repository contains no .NET source, so there is nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
- X4 Structured logging — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X6 Hand-rolled structured-format parsing — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- X7 Silent fallback defaults — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- X9 Subsumed condition operand — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
Appendix A — Findings (grouped)
Critical — 15 finding(s)
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
Serious — 157 finding(s)
- No assertions: testIntegration src/Test/IntegrationTestCase.php:130
- No assertions: testLegacyIntegration src/Test/IntegrationTestCase.php:143
- No assertions: testMacroDefinitionSupportsConstantDefaultValues tests/ExpressionParserTest.php:568
- No assertions: testNotReadyFunction tests/ExpressionParserTest.php:739
- No assertions: testNotReadyFilter tests/ExpressionParserTest.php:755
- No assertions: testNotReadyTest tests/ExpressionParserTest.php:771
- No assertions: testSandboxForExtendsAndUseTags tests/Extension/SandboxTest.php:162
- No assertions: testSandboxForConstantTest tests/Extension/SandboxTest.php:410
- No assertions: testLegacyCheckSecurityCallWithSourceAs4thArgumentTriggersDeprecation tests/Extension/SandboxTest.php:546
- No assertions: testLegacyCheckSecurityNodeWithoutUsedTestsTriggersDeprecation tests/Extension/SandboxTest.php:559
- No assertions: testLegacySecurityPolicyCheckSecurityWithoutTestsArgTriggersDeprecation tests/Extension/SandboxTest.php:570
- No assertions: testLongComments tests/LexerTest.php:126
- No assertions: testLongVerbatim tests/LexerTest.php:138
- No assertions: testLongVar tests/LexerTest.php:150
- No assertions: testLongBlock tests/LexerTest.php:162
- No assertions: testStringWithEscapedDelimiterProducingDeprecation tests/LexerTest.php:278
- No assertions: testStringWithInterpolation tests/LexerTest.php:319
- No assertions: testStringWithEscapedInterpolation tests/LexerTest.php:340
- No assertions: testStringWithHash tests/LexerTest.php:355
- No assertions: testStringWithNestedInterpolations tests/LexerTest.php:381
- No assertions: testStringWithNestedInterpolationsInBlock tests/LexerTest.php:402
- No assertions: testOperatorEndingWithALetterAtTheEndOfALine tests/LexerTest.php:424
- No assertions: testFilterAndAttributeNamedAfterOperator tests/LexerTest.php:439
- No assertions: testLiteralIsNotAnOperator tests/LexerTest.php:475
- No assertions: testOverridingSyntax tests/LexerTest.php:526
- TooManyMethods: CoreExtension src/Extension/CoreExtension.php:119
- TooManyMethods: Environment src/Environment.php:45
- TooManyMethods: core src/Resources/core.php:1
- TooManyMethods: Parser src/Parser.php:43
- TooManyMethods: IntlExtension extra/intl-extra/IntlExtension.php:28
- TooManyMethods: ExtensionSet src/ExtensionSet.php:39
- TooManyMethods: Template src/Template.php:29
- Hotspot: src/Extension/CoreExtension.php src/Extension/CoreExtension.php:1753
- Hotspot: src/Parser.php src/Parser.php:181
- Hotspot: extra/intl-extra/IntlExtension.php extra/intl-extra/IntlExtension.php:484
- Hotspot: src/Runtime/EscaperRuntime.php src/Runtime/EscaperRuntime.php:118
- Hotspot: src/Node/Expression/CallExpression.php src/Node/Expression/CallExpression.php:70
- Hotspot: src/TwigMacro.php src/TwigMacro.php:87
- Duplicated block (6 lines × 2) src/Node/Expression/Binary/AbstractBinary.php:27
- Duplicated block (6 lines × 2) src/Node/Expression/CallExpression.php:293
- Duplicated block (6 lines × 2) src/Node/Expression/FunctionExpression.php:39
- Low cohesion: IntlExtension (LCOM4 17) extra/intl-extra/IntlExtension.php:28
- Low cohesion: FilesystemCache (LCOM4 4) src/Cache/FilesystemCache.php:19
- Low cohesion: StagingExtension (LCOM4 4) src/Extension/StagingExtension.php:27
- MethodTooLong: CoreExtension.getAttribute src/Extension/CoreExtension.php:1753
- MethodTooLong: EscaperRuntime.escape src/Runtime/EscaperRuntime.php:118
- Change coupling: TwigFilter.php ↔ TwigFunction.php src/TwigFilter.php:1
- Change coupling: ExpressionParser.php ↔ SafeAnalysisNodeVisitor.php src/ExpressionParser.php:1
- Duplicated block (11 lines × 2) src/Node/Expression/CallExpression.php:209
- Duplicated block (11 lines × 2) src/Node/SetNode.php:58
- Duplicated block (8 lines × 2) src/Loader/FilesystemLoader.php:97
- Duplicated block (8 lines × 2) src/TokenParser/BlockTokenParser.php:47
- Process-global state is restored only on the happy path src/Compiler.php:162
- Process-global state is restored only on the happy path src/Util/DeprecationCollector.php:54
- CoreExtension.getAttribute (cyclomatic 80) src/Extension/CoreExtension.php:1753
- EscaperRuntime.escape (cyclomatic 57) src/Runtime/EscaperRuntime.php:118
- CallableArgumentsExtractor.extractArguments (cyclomatic 34) src/Util/CallableArgumentsExtractor.php:40
- CallExpression.getArguments (cyclomatic 32) src/Node/Expression/CallExpression.php:144
- SandboxNodeVisitor.enterNode (cyclomatic 31) src/NodeVisitor/SandboxNodeVisitor.php:52
- IntlExtension.createDateFormatter (cyclomatic 29) extra/intl-extra/IntlExtension.php:484
- CallExpression.getTwigCallable (cyclomatic 26) src/Node/Expression/CallExpression.php:336
- Lexer.stripcslashes (cyclomatic 23) src/Lexer.php:427
- OptimizerNodeVisitor.enterOptimizeFor (cyclomatic 23) src/NodeVisitor/OptimizerNodeVisitor.php:126
- Token.test (cyclomatic 23) src/Token.php:76
- HtmlExtension.htmlAttrValue (cyclomatic 21) extra/html-extra/HtmlExtension.php:225
- SafeAnalysisNodeVisitor.leaveNode (cyclomatic 21) src/NodeVisitor/SafeAnalysisNodeVisitor.php:77
- TwigMacro.callLegacy (cyclomatic 21) src/TwigMacro.php:87
- IntlExtension.createNumberFormatter (cyclomatic 20) extra/intl-extra/IntlExtension.php:603
- LiteralExpressionParser.parse (cyclomatic 20) src/ExpressionParser/Prefix/LiteralExpressionParser.php:34
- ExtensionSet.initExtension (cyclomatic 20) src/ExtensionSet.php:462
- ExpressionParser.parseArguments (cyclomatic 19) src/ExpressionParser.php:213
- CallableParameters.isStringCoercionSafe (cyclomatic 19) src/Util/CallableParameters.php:78
- CallExpression.compileArguments (cyclomatic 18) src/Node/Expression/CallExpression.php:70
- GetAttrExpression.compile (cyclomatic 18) src/Node/Expression/GetAttrExpression.php:49
- Parser.subparse (cyclomatic 18) src/Parser.php:181
- ReflectionCallable.__construct (cyclomatic 18) src/Util/ReflectionCallable.php:28
- CoreExtension.convertDate (cyclomatic 17) src/Extension/CoreExtension.php:584
- CoreExtension.compare (cyclomatic 17) src/Extension/CoreExtension.php:1122
- Error.guessTemplateInfo (cyclomatic 16) src/Error/Error.php:162
- CoreExtension.inFilter (cyclomatic 16) src/Extension/CoreExtension.php:1070
- CoreExtension.getAttribute (cognitive 140) src/Extension/CoreExtension.php:1753
- EscaperRuntime.escape (cognitive 81) src/Runtime/EscaperRuntime.php:118
- CallableArgumentsExtractor.extractArguments (cognitive 60) src/Util/CallableArgumentsExtractor.php:40
- CallExpression.getArguments (cognitive 55) src/Node/Expression/CallExpression.php:144
- SandboxNodeVisitor.enterNode (cognitive 45) src/NodeVisitor/SandboxNodeVisitor.php:52
- Parser.subparse (cognitive 42) src/Parser.php:181
- ExpressionParser.parseArguments (cognitive 41) src/ExpressionParser.php:213
- IntlExtension.createDateFormatter (cognitive 38) extra/intl-extra/IntlExtension.php:484
- Token.test (cognitive 36) src/Token.php:76
- SetNode.compile (cognitive 34) src/Node/SetNode.php:54
- IntlExtension.createNumberFormatter (cognitive 32) extra/intl-extra/IntlExtension.php:603
- TwigMacro.callLegacy (cognitive 32) src/TwigMacro.php:87
- Lexer.stripcslashes (cognitive 27) src/Lexer.php:427
- Error.guessTemplateInfo (cognitive 26) src/Error/Error.php:162
- ExtensionSet.initExtension (cognitive 26) src/ExtensionSet.php:462
- SafeAnalysisNodeVisitor.leaveNode (cognitive 26) src/NodeVisitor/SafeAnalysisNodeVisitor.php:77
- CallExpression.compileArguments (cognitive 25) src/Node/Expression/CallExpression.php:70
- HtmlExtension.htmlAttrValue (cognitive 24) extra/html-extra/HtmlExtension.php:225
- CoreExtension.random (cognitive 24) src/Extension/CoreExtension.php:459
- CoreExtension.compare (cognitive 24) src/Extension/CoreExtension.php:1122
- CallableParameters.isStringCoercionSafe (cognitive 24) src/Util/CallableParameters.php:78
- CoreExtension.inFilter (cognitive 23) src/Extension/CoreExtension.php:1070
- CallExpression.getTwigCallable (cognitive 23) src/Node/Expression/CallExpression.php:336
- GetAttrExpression.compile (cognitive 23) src/Node/Expression/GetAttrExpression.php:49
- MacroTokenParser.parseDefinition (cognitive 23) src/TokenParser/MacroTokenParser.php:78
- ArgumentsTrait.parseNamedArguments (cognitive 22) src/ExpressionParser/Infix/ArgumentsTrait.php:37
- ModuleNode.compileConstructor (cognitive 22) src/Node/ModuleNode.php:215
- CoreExtension.convertDate (cognitive 21) src/Extension/CoreExtension.php:584
- Parser.checkPrecedenceDeprecations (cognitive 20) src/Parser.php:616
- ExpressionParsers.getPrecedenceChanges (cognitive 19) src/ExpressionParser/ExpressionParsers.php:116
- FilesystemLoader.findTemplate (cognitive 19) src/Loader/FilesystemLoader.php:184
- Parser.getTest (cognitive 18) src/Parser.php:546
- ReflectionCallable.__construct (cognitive 18) src/Util/ReflectionCallable.php:28
- HtmlExtension.htmlAttrMerge (cognitive 17) extra/html-extra/HtmlExtension.php:150
- Environment.loadTemplate (cognitive 17) src/Environment.php:403
- AssignmentExpressionParser.parse (cognitive 17) src/ExpressionParser/Infix/AssignmentExpressionParser.php:42
- CallExpression.compileCallable (cognitive 17) src/Node/Expression/CallExpression.php:32
- OptimizerNodeVisitor.enterOptimizeFor (cognitive 17) src/NodeVisitor/OptimizerNodeVisitor.php:126
- SandboxNodeVisitor.wrapArguments (cognitive 17) src/NodeVisitor/SandboxNodeVisitor.php:145
- HtmlExtension.htmlClasses (cognitive 16) extra/html-extra/HtmlExtension.php:101
- AttributeExtension.initFromAttributes (cognitive 16) src/Extension/AttributeExtension.php:85
- Inconsistent naming convention for singular vs plural retrieval methods. The API provides both a singular getter (e.g., `getFilter`) and a plural getter (e.g., `getFilters`) for Filters, Functions, and Tests. While not strictly redundant (one returns a single item, the other a collection), the pattern is inconsistent with other parts of the API (e.g., `getTokenParser` exists, but `getTokenParsers` is the only way to get all; `getExtension` exists, but `getExtensions` is the only way to get all). More importantly, `getFilter`/`getFunction`/`getTest` are often less useful than `getFilters`/`getFunctions`/`getTests` because they require exact name matching and return null if not found, whereas the plural versions allow iteration. The existence of both creates confusion about which to use for lookup vs enumeration.
- ClassTooLong: CoreExtension src/Extension/CoreExtension.php:119
- FileTooLong: Extension/CoreExtension.php src/Extension/CoreExtension.php
- Members sharing a duplicated core (4 members, 50+ identical tokens) src/Node/Node.php:172
- Duplicated block (24 lines × 2) src/Node/Expression/FunctionNode/EnumCasesFunction.php:23
- Duplicated block (21 lines × 2) src/Node/Expression/CallExpression.php:239
- Duplicated block (14 lines × 2) src/Compiler.php:70
- Duplicated block (11–13 lines × 2) src/Runtime/EscaperRuntime.php:199
- Duplicated block (12 lines × 2) src/ExpressionParser/Prefix/LiteralExpressionParser.php:151
- Duplicated block (10 lines × 2) src/Node/Expression/FunctionExpression.php:63
- Duplicated block (6–9 lines × 3) src/Node/Expression/CallExpression.php:343
- Duplicated block (9 lines × 2) src/Node/Expression/Binary/EndsWithBinary.php:21
- Duplicated block (8 lines × 3) src/Extension/AttributeExtension.php:106
- Duplicated block (7 lines × 2) src/ExpressionParser.php:193
- Duplicated block (6 lines × 3) src/ExpressionParser/Infix/FilterExpressionParser.php:51
- Duplicated block (5 lines × 4) src/Node/Node.php:180
- Duplicated block (5 lines × 2) src/Node/Expression/Binary/NullCoalesceBinary.php:35
- Duplicated block (23 lines × 6) src/Node/Expression/Binary/EqualBinary.php:22
- Duplicated block (12 lines × 5) src/Node/Expression/Binary/HasEveryBinary.php:21
- Duplicated block (17 lines × 3) src/Node/Expression/Binary/InBinary.php:22
- Duplicated block (31 lines × 2) src/TwigFilter.php:31
- Duplicated block (13 lines × 2) src/ExpressionParser.php:345
- Duplicated block (9 lines × 3) src/Node/Expression/Binary/ElvisBinary.php:36
- README may be stale
- Swallowed exception (caught, then discarded) src/Util/CallableParameters.php:157
Minor — 42 finding(s)
- README/code drift README.rst:1
- README/code drift doc/advanced.rst:839
- README/code drift doc/advanced.rst:895
- README/code drift doc/api.rst:623
- README/code drift doc/deprecated.rst:16
- README/code drift doc/deprecated.rst:55
- README/code drift doc/deprecated.rst:73
- README/code drift doc/deprecated.rst:99
- README/code drift doc/deprecated.rst:109
- README/code drift doc/deprecated.rst:187
- README/code drift doc/deprecated.rst:194
- README/code drift doc/deprecated.rst:195
- README/code drift doc/deprecated.rst:203
- README/code drift doc/deprecated.rst:206
- README/code drift doc/deprecated.rst:219
- README/code drift doc/deprecated.rst:223
- README/code drift doc/deprecated.rst:226
- README/code drift doc/deprecated.rst:250
- README/code drift doc/deprecated.rst:362
- README/code drift doc/deprecated.rst:384
- README/code drift doc/deprecated.rst:395
- README/code drift doc/deprecated.rst:422
- README/code drift doc/deprecated.rst:424
- README/code drift doc/deprecated.rst:470
- README/code drift doc/sandbox.rst:20
- Duplicated predicate src/ExpressionParser.php:345
- Duplicated predicate src/Node/Expression/CallExpression.php:293
- Duplicated predicate src/ExpressionParser.php:307
- Documentation: no project overview README.rst
- Documentation: no installation or build instructions README.rst
- Off-boarding risk: anonymized user #1
- Further sole-owners (lower concentration)
- Projects may be oversized for their cohesion
- Orphaned files with no living knowledge
- Orphaned file extra/html-extra/HtmlAttr/MergeableInterface.php:1
- Thin README
- No ADRs
- No architecture diagram/doc
- PHP static analysis does not check null everywhere
Minor — 20 finding(s)
- No assertions (declared): testNotReadyFunctionWithNoConstructor tests/ExpressionParserTest.php:705
- No assertions (declared): testNotReadyFilterWithNoConstructor tests/ExpressionParserTest.php:715
- No assertions (declared): testNotReadyTestWithNoConstructor tests/ExpressionParserTest.php:725
- No assertions (declared): testReadyFunction tests/ExpressionParserTest.php:783
- No assertions (declared): testReadyFilter tests/ExpressionParserTest.php:793
- No assertions (declared): testReadyTest tests/ExpressionParserTest.php:803
- No assertions (declared): testTwoWordTestPrecedence tests/ExpressionParserTest.php:813
- No assertions (declared): testUnaryPrecedenceChange tests/ExpressionParserTest.php:824
- No assertions (declared): testMultipleClassMatchesViaInheritanceInAllowedMethods tests/Extension/SandboxTest.php:1406
- No assertions (declared): testConstructor tests/NodeVisitor/OptimizerTest.php:37
- No assertions (declared): testTwigCheckArrowInSandboxIsNoopWhenNotSandboxed tests/Resources/LegacyCoreTest.php:205
- No assertions (declared): testUndefinedHandlers tests/TokenParser/GuardTokenParserTest.php:23
- Skipped (documented): testFormatListThrowsOnFailure extra/intl-extra/Tests/IntlExtensionTest.php:269
- Skipped (documented): testCatalogUsesExtensionsFromCurrentCheckout extra/twig-extra-bundle/Tests/ExtensionsTest.php:58
- Skipped (documented): testWriteFailMkdir tests/Cache/FilesystemTest.php:107
- Skipped (documented): testWriteFailDirWritable tests/Cache/FilesystemTest.php:128
- Skipped (documented): testReprNumericValueWithLocale tests/CompilerTest.php:48
- Skipped (documented): testResolveArgumentsWithMissingValueForOptionalArgument tests/Node/Expression/CallTest.php:82
- Skipped (documented): testGetAttributeOnLazyGhostWithPrivatePropertyCallsTheGetterWithoutInitializingIt tests/TemplateTest.php:817
- Skipped (documented): testResolveArgumentsWithMissingValueForOptionalArgument tests/Util/CallableArgumentsExtractorTest.php:78
Appendix B — Reproduction & audit trail
| Dimension | Tool | Version | Command | Findings | Raw output |
|---|---|---|---|---|---|
| D28 · Secrets (history) | gitleaks | — | gitleaks detect --no-banner --config /opt/gitleaks-rules/watchdog-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-54aa8a57cb684b3f81b3de6691b5f5d7/history.json --exit-code 0 --source . | 0 | artifacts/raw/gitleaks-history.json |
| D28 · Secrets (history) | gitleaks | — | gitleaks detect --no-git --no-banner --config /opt/gitleaks-rules/watchdog-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-54aa8a57cb684b3f81b3de6691b5f5d7/tree.json --exit-code 0 --source . | 0 | artifacts/raw/gitleaks-tree.json |
| D29 · Static Analysis (SAST) | semgrep | — | semgrep --config /opt/semgrep-rules/security-audit.yml --config /opt/semgrep-rules/owasp-top-ten.yml --config /opt/semgrep-rules/watchdog-sast.yml --json --quiet --timeout 10 --timeout-threshold 3 --metrics off . | 15 | artifacts/raw/semgrep.json |
| D30 · Dependency Vulnerabilities | osv-scanner | — | osv-scanner --format json --recursive --experimental-disable-plugins transitivedependency/requirements --experimental-disable-plugins dotnet/csproj --experimental-disable-plugins dotnet/nugetcpm . | 0 | artifacts/raw/osv-scanner.json |
| D31 · IaC & Container Security | trivy | — | trivy: not applicable — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan. | 0 | — |
| D32 · Data Compliance (PII/GDPR) | semgrep | — | semgrep: not applicable — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that. semgrep could not parse 3 file(s) — `extra/html-extra/HtmlAttr/InlineStyle.php`, `extra/html-extra/HtmlAttr/SeparatedTokenList.php`, `src/ExpressionParser/Prefix/GroupingExpressionParser.php` — so the PII/GDPR sweep did not cover the unparsed regions of them; rows reported elsewhere in those files are real. | 0 | — |
| D36 · Supply-chain Provenance & Signing | provenance | — | provenance: not applicable — The CI pipeline builds and tests but publishes no released artifact — no package publish, container push, GitHub release or deployment step. Supply-chain provenance, signing and SBOM attest RELEASED artifacts, so there is nothing to attest here. Add them to the release pipeline when this repo starts shipping artifacts (a published package, a container image, a deployed service or a tagged release). | 0 | — |
| D40 · Network Egress Confinement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here. | 0 | — |
| D41 · Kernel & Syscall Confinement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here. | 0 | — |
| D42 · Runtime Threat Enforcement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here. | 0 | — |
| D43 · Malicious Dependencies | osv-scanner | — | osv-scanner --format json --recursive --experimental-disable-plugins transitivedependency/requirements --experimental-disable-plugins dotnet/csproj --experimental-disable-plugins dotnet/nugetcpm . | 0 | artifacts/raw/osv-scanner.json |