Priority | File | Line | Rule | Message |
---|---|---|---|---|
3 | src/Command/CreateClassCommand.php | 184 | UnusedLocalVariable | Avoid unused local variables such as $isEnumType . |
3 | src/Command/WatchCommand.php | 34 | UnusedPrivateField | Avoid unused private fields such as $data . |
3 | src/Command/WatchCommand.php | 228 | UnusedPrivateMethod | Avoid unused private methods such as parseFile . |
3 | src/Command/WatchCommand.php | 228 | UnusedFormalParameter | Avoid unused parameters such as $generator . |
3 | src/Command/WatchCommand.php | 228 | UnusedFormalParameter | Avoid unused parameters such as $sourceFile . |
3 | src/Command/WatchCommand.php | 228 | UnusedFormalParameter | Avoid unused parameters such as $dest . |
3 | src/Command/WatchCommand.php | 228 | UnusedFormalParameter | Avoid unused parameters such as $io . |
3 | src/Command/WatchCommand.php | 233 | UnusedPrivateMethod | Avoid unused private methods such as formatHtml . |
3 | src/Service/ComponentBuilder.php | 50 | UnusedLocalVariable | Avoid unused local variables such as $childElement . |
Issues detected: 9
Priority | File | Line | Rule | Message |
---|---|---|---|---|
3 | src/Command/CreateClassCommand.php | 21 | ExcessiveClassComplexity | The class CreateClassCommand has an overall complexity of 57 which is very high. The configured complexity threshold is 50. |
3 | src/Command/CreateEnumCommand.php | 28 | CyclomaticComplexity | The method __invoke() has a Cyclomatic Complexity of 10. The configured cyclomatic complexity threshold is 10. |
3 | src/Command/WatchCommand.php | 50 | CyclomaticComplexity | The method __invoke() has a Cyclomatic Complexity of 14. The configured cyclomatic complexity threshold is 10. |
3 | src/Command/WatchCommand.php | 50 | NPathComplexity | The method __invoke() has an NPath complexity of 768. The configured NPath complexity threshold is 200. |
3 | src/Delegator/HTMLElementDelegator.php | 35 | ExcessiveClassComplexity | The class HTMLElementDelegator has an overall complexity of 51 which is very high. The configured complexity threshold is 50. |
3 | src/Delegator/HTMLElementDelegator.php | 175 | CyclomaticComplexity | The method setAttribute() has a Cyclomatic Complexity of 14. The configured cyclomatic complexity threshold is 10. |
3 | src/Delegator/HTMLElementDelegator.php | 175 | NPathComplexity | The method setAttribute() has an NPath complexity of 324. The configured NPath complexity threshold is 200. |
3 | src/Element/Block/Body.php | 59 | ExcessivePublicCount | The class Body has 52 public methods and attributes. Consider reducing the number of public items to less than 45. |
3 | src/Element/Block/Body.php | 59 | TooManyFields | The class Body has 20 fields. Consider redesigning Body to keep the number of fields under 15. |
3 | src/Element/Inline/Input.php | 36 | ExcessivePublicCount | The class Input has 74 public methods and attributes. Consider reducing the number of public items to less than 45. |
3 | src/Element/Inline/Input.php | 36 | TooManyFields | The class Input has 28 fields. Consider redesigning Input to keep the number of fields under 15. |
3 | src/Element/Inline/Input.php | 36 | ExcessiveClassComplexity | The class Input has an overall complexity of 50 which is very high. The configured complexity threshold is 50. |
3 | src/Element/Inline/Textarea.php | 36 | TooManyFields | The class Textarea has 16 fields. Consider redesigning Textarea to keep the number of fields under 15. |
3 | src/Trait/ClassResolverTrait.php | 44 | CyclomaticComplexity | The method getElementByQualifiedName() has a Cyclomatic Complexity of 12. The configured cyclomatic complexity threshold is 10. |
3 | src/Trait/GlobalAttributesTrait.php | 19 | ExcessivePublicCount | The trait GlobalAttributesTrait has 48 public methods and attributes. Consider reducing the number of public items to less than 45. |
Issues detected: 15
Priority | File | Line | Rule | Message |
---|---|---|---|---|
1 | src/Command/CreateClassCommand.php | 36 | StaticAccess | Avoid using static access to class \Symfony\Component\Yaml\Yaml in method __invoke . |
1 | src/Command/CreateClassCommand.php | 257 | ElseExpression | The method getMethods uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. |
1 | src/Command/CreateClassCommand.php | 362 | ElseExpression | The method getAttributeComment uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. |
1 | src/Command/CreateClassCommand.php | 424 | StaticAccess | Avoid using static access to class \Html\Helper\Helper in method getClassName . |
1 | src/Command/CreateEnumCommand.php | 38 | StaticAccess | Avoid using static access to class \Symfony\Component\Yaml\Yaml in method __invoke . |
1 | src/Command/CreateJsonCommand.php | 31 | StaticAccess | Avoid using static access to class \Symfony\Component\Yaml\Yaml in method __invoke . |
1 | src/Command/WatchCommand.php | 54 | BooleanArgumentFlag | The method __invoke has a boolean flag argument $overwriteExisting, which is a certain sign of a Single Responsibility Principle violation. |
1 | src/Command/WatchCommand.php | 62 | ElseExpression | The method __invoke uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. |
1 | src/Command/WatchCommand.php | 112 | StaticAccess | Avoid using static access to class \Revolt\EventLoop in method __invoke . |
1 | src/Command/WatchCommand.php | 116 | StaticAccess | Avoid using static access to class \Revolt\EventLoop in method __invoke . |
1 | src/Command/WatchCommand.php | 121 | StaticAccess | Avoid using static access to class \Revolt\EventLoop in method __invoke . |
1 | src/Command/WatchCommand.php | 163 | StaticAccess | Avoid using static access to class \Html\Delegator\HTMLDocumentDelegator in method processSingleFile . |
1 | src/Command/WatchCommand.php | 192 | ElseExpression | The method processSingleFile uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. |
1 | src/Command/WatchCommand.php | 233 | ErrorControlOperator | Remove error control operator @ on line 239. |
1 | src/Command/WatchCommand.php | 247 | ElseExpression | The method createDirectory uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. |
1 | src/Delegator/HTMLDocumentDelegator.php | 87 | StaticAccess | Avoid using static access to class \DOM\HTMLDocument in method createEmpty . |
1 | src/Delegator/HTMLDocumentDelegator.php | 92 | StaticAccess | Avoid using static access to class \DOM\HTMLDocument in method createFromString . |
1 | src/Delegator/HTMLDocumentDelegator.php | 97 | StaticAccess | Avoid using static access to class \DOM\HTMLDocument in method createFromFile . |
1 | src/Delegator/HTMLElementDelegator.php | 73 | StaticAccess | Avoid using static access to class \Html\Helper\Helper in method __set . |
1 | src/Delegator/HTMLElementDelegator.php | 89 | ElseExpression | The method __set uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. |
1 | src/Delegator/HTMLElementDelegator.php | 101 | StaticAccess | Avoid using static access to class \Html\Helper\Helper in method __set . |
1 | src/Delegator/HTMLElementDelegator.php | 191 | ElseExpression | The method setAttribute uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. |
1 | src/Delegator/HTMLElementDelegator.php | 200 | ElseExpression | The method setAttribute uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. |
1 | src/Element/Block/Audio.php | 125 | StaticAccess | Avoid using static access to class \Html\Enum\CrossoriginEnum in method setCrossorigin . |
1 | src/Element/Block/Audio.php | 167 | StaticAccess | Avoid using static access to class \Html\Enum\PreloadEnum in method setPreload . |
1 | src/Element/Block/Form.php | 169 | StaticAccess | Avoid using static access to class \Html\Enum\AutocompleteEnum in method setAutocomplete . |
1 | src/Element/Block/Form.php | 187 | StaticAccess | Avoid using static access to class \Html\Enum\EnctypeEnum in method setEnctype . |
1 | src/Element/Block/Form.php | 205 | StaticAccess | Avoid using static access to class \Html\Enum\MethodEnum in method setMethod . |
1 | src/Element/Block/Form.php | 245 | StaticAccess | Avoid using static access to class \Html\Enum\TargetEnum in method setTarget . |
1 | src/Element/Block/HorizontalRule.php | 86 | StaticAccess | Avoid using static access to class \Html\Enum\AlignEnum in method setAlign . |
1 | src/Element/Block/InlineFrame.php | 147 | StaticAccess | Avoid using static access to class \Html\Enum\ReferrerpolicyEnum in method setReferrerpolicy . |
1 | src/Element/Block/OrderedList.php | 111 | StaticAccess | Avoid using static access to class \Html\Enum\TypeOlEnum in method setType . |
1 | src/Element/Block/TableRow.php | 85 | StaticAccess | Avoid using static access to class \Html\Enum\AlignEnum in method setAlign . |
1 | src/Element/Block/TableRow.php | 137 | StaticAccess | Avoid using static access to class \Html\Enum\ValignEnum in method setValign . |
1 | src/Element/Block/Video.php | 137 | StaticAccess | Avoid using static access to class \Html\Enum\CrossoriginEnum in method setCrossorigin . |
1 | src/Element/Block/Video.php | 203 | StaticAccess | Avoid using static access to class \Html\Enum\PreloadEnum in method setPreload . |
1 | src/Element/Inline/Anchor.php | 159 | StaticAccess | Avoid using static access to class \Html\Enum\RelEnum in method setRel . |
1 | src/Element/Inline/Anchor.php | 176 | StaticAccess | Avoid using static access to class \Html\Enum\TargetEnum in method setTarget . |
1 | src/Element/Inline/Button.php | 146 | StaticAccess | Avoid using static access to class \Html\Enum\TypeButtonEnum in method setType . |
1 | src/Element/Inline/Image.php | 153 | StaticAccess | Avoid using static access to class \Html\Enum\CrossoriginEnum in method setCrossorigin . |
1 | src/Element/Inline/Image.php | 171 | StaticAccess | Avoid using static access to class \Html\Enum\DecodingEnum in method setDecoding . |
1 | src/Element/Inline/Image.php | 213 | StaticAccess | Avoid using static access to class \Html\Enum\ReferrerpolicyEnum in method setReferrerpolicy . |
1 | src/Element/Inline/Input.php | 234 | StaticAccess | Avoid using static access to class \Html\Enum\AutocompleteEnum in method setAutocomplete . |
1 | src/Element/Inline/Input.php | 468 | StaticAccess | Avoid using static access to class \Html\Enum\TypeInputEnum in method setType . |
1 | src/Element/Inline/Select.php | 115 | StaticAccess | Avoid using static access to class \Html\Enum\AutocompleteEnum in method setAutocomplete . |
1 | src/Element/Inline/Textarea.php | 144 | StaticAccess | Avoid using static access to class \Html\Enum\AutocompleteEnum in method setAutocomplete . |
1 | src/Element/Inline/Textarea.php | 282 | StaticAccess | Avoid using static access to class \Html\Enum\WrapEnum in method setWrap . |
1 | src/Element/Void/Area.php | 191 | StaticAccess | Avoid using static access to class \Html\Enum\RelEnum in method setRel . |
1 | src/Element/Void/Area.php | 207 | StaticAccess | Avoid using static access to class \Html\Enum\ShapeEnum in method setShape . |
1 | src/Element/Void/Area.php | 223 | StaticAccess | Avoid using static access to class \Html\Enum\TargetEnum in method setTarget . |
1 | src/Element/Void/Base.php | 83 | StaticAccess | Avoid using static access to class \Html\Enum\TargetEnum in method setTarget . |
1 | src/Element/Void/Link.php | 104 | StaticAccess | Avoid using static access to class \Html\Enum\CrossoriginEnum in method setCrossorigin . |
1 | src/Element/Void/Link.php | 170 | StaticAccess | Avoid using static access to class \Html\Enum\ReferrerpolicyEnum in method setReferrerpolicy . |
1 | src/Element/Void/Link.php | 188 | StaticAccess | Avoid using static access to class \Html\Enum\RelEnum in method setRel . |
1 | src/Element/Void/Meta.php | 108 | StaticAccess | Avoid using static access to class \Html\Enum\HttpEquivEnum in method setHttpEquiv . |
1 | src/Element/Void/Script.php | 127 | StaticAccess | Avoid using static access to class \Html\Enum\CrossoriginEnum in method setCrossorigin . |
1 | src/Element/Void/Script.php | 181 | StaticAccess | Avoid using static access to class \Html\Enum\ReferrerpolicyEnum in method setReferrerpolicy . |
1 | src/Element/Void/Script.php | 211 | StaticAccess | Avoid using static access to class \Html\Enum\TypeScriptEnum in method setType . |
1 | src/Element/Void/Style.php | 128 | StaticAccess | Avoid using static access to class \Html\Enum\TypeStyleEnum in method setType . |
1 | src/Element/Void/Track.php | 114 | StaticAccess | Avoid using static access to class \Html\Enum\KindEnum in method setKind . |
1 | src/Service/ComponentBuilder.php | 54 | ElseExpression | The method buildDOM uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. |
1 | src/Service/ComponentBuilder.php | 63 | ElseExpression | The method buildDOM uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. |
1 | src/Trait/GlobalAttributesTrait.php | 189 | StaticAccess | Avoid using static access to class \Html\Enum\AutoCapitalizeEnum in method setAutoCapitalize . |
1 | src/Trait/GlobalAttributesTrait.php | 209 | StaticAccess | Avoid using static access to class \Html\Enum\ContentEditableEnum in method setContentEditable . |
1 | src/Trait/GlobalAttributesTrait.php | 216 | StaticAccess | Avoid using static access to class \Html\Enum\ContentEditableEnum in method setContentEditable . |
1 | src/Trait/GlobalAttributesTrait.php | 218 | StaticAccess | Avoid using static access to class \Html\Enum\ContentEditableEnum in method setContentEditable . |
1 | src/Trait/GlobalAttributesTrait.php | 258 | StaticAccess | Avoid using static access to class \Html\Enum\DirectionEnum in method setDir . |
1 | src/Trait/GlobalAttributesTrait.php | 262 | StaticAccess | Avoid using static access to class \Html\Enum\DirectionEnum in method setDir . |
1 | src/Trait/GlobalAttributesTrait.php | 263 | StaticAccess | Avoid using static access to class \Html\Enum\DirectionEnum in method setDir . |
1 | src/Trait/GlobalAttributesTrait.php | 275 | BooleanArgumentFlag | The method setDraggable has a boolean flag argument $draggable, which is a certain sign of a Single Responsibility Principle violation. |
1 | src/Trait/GlobalAttributesTrait.php | 294 | BooleanArgumentFlag | The method setHidden has a boolean flag argument $hidden, which is a certain sign of a Single Responsibility Principle violation. |
1 | src/Trait/GlobalAttributesTrait.php | 326 | StaticAccess | Avoid using static access to class \Html\Enum\InputModeEnum in method setInputMode . |
1 | src/Trait/GlobalAttributesTrait.php | 329 | StaticAccess | Avoid using static access to class \Html\Enum\InputModeEnum in method setInputMode . |
1 | src/Trait/GlobalAttributesTrait.php | 453 | StaticAccess | Avoid using static access to class \Html\Enum\SpellCheckEnum in method setSpellCheck . |
1 | src/Trait/GlobalAttributesTrait.php | 456 | StaticAccess | Avoid using static access to class \Html\Enum\SpellCheckEnum in method setSpellCheck . |
1 | src/Trait/GlobalAttributesTrait.php | 459 | StaticAccess | Avoid using static access to class \Html\Enum\SpellCheckEnum in method setSpellCheck . |
Issues detected: 76
Priority | File | Line | Rule | Message |
---|---|---|---|---|
2 | src/Delegator/HTMLElementDelegator.php | 35 | CouplingBetweenObjects | The class HTMLElementDelegator has a coupling between objects value of 15. Consider to reduce the number of dependencies under 13. |
2 | src/Element/BlockElement.php | 7 | NumberOfChildren | The class BlockElement has 60 children. Consider to rebalance this class hierarchy to keep number of children under 15. |
2 | src/Element/InlineElement.php | 7 | NumberOfChildren | The class InlineElement has 38 children. Consider to rebalance this class hierarchy to keep number of children under 15. |
1 | src/Command/WatchCommand.php | 68 | ExitExpression | The method __invoke() contains an exit expression. |
1 | src/Command/WatchCommand.php | 118 | ExitExpression | The method __invoke() contains an exit expression. |
1 | src/Command/WatchCommand.php | 160 | ExitExpression | The method processSingleFile() contains an exit expression. |
1 | src/Command/WatchCommand.php | 199 | ExitExpression | The method processSingleFile() contains an exit expression. |
1 | src/Command/WatchCommand.php | 249 | ExitExpression | The method createDirectory() contains an exit expression. |
Issues detected: 8
Mon Jul 14 12:31:54 PM CEST 2025