You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
->descriptions('Observes a directory or file for changes, and generates templates for HTML Elements', ['generator' => 'name of the generator', 'source' => 'source path', 'dest' => 'destination path'])
| <spanclass="prio3">3</span> | src/Command/CreateClassCommand.php | 291 |[UnusedFormalParameter](https://phpmd.org/rules/unusedcode.html#unusedformalparameter)| Avoid unused parameters such as `$type`. |
12
12
| <spanclass="prio3">3</span> | src/Command/WatchCommand.php | 35 |[UnusedPrivateField](https://phpmd.org/rules/unusedcode.html#unusedprivatefield)| Avoid unused private fields such as `$data`. |
13
-
| <spanclass="prio3">3</span> | src/Command/WatchCommand.php |215|[UnusedPrivateMethod](https://phpmd.org/rules/unusedcode.html#unusedprivatemethod)| Avoid unused private methods such as `parseFile`. |
14
-
| <spanclass="prio3">3</span> | src/Command/WatchCommand.php |215|[UnusedFormalParameter](https://phpmd.org/rules/unusedcode.html#unusedformalparameter)| Avoid unused parameters such as `$generator`. |
15
-
| <spanclass="prio3">3</span> | src/Command/WatchCommand.php |215|[UnusedFormalParameter](https://phpmd.org/rules/unusedcode.html#unusedformalparameter)| Avoid unused parameters such as `$sourceFile`. |
16
-
| <spanclass="prio3">3</span> | src/Command/WatchCommand.php |215|[UnusedFormalParameter](https://phpmd.org/rules/unusedcode.html#unusedformalparameter)| Avoid unused parameters such as `$dest`. |
17
-
| <spanclass="prio3">3</span> | src/Command/WatchCommand.php |215|[UnusedFormalParameter](https://phpmd.org/rules/unusedcode.html#unusedformalparameter)| Avoid unused parameters such as `$io`. |
18
-
| <spanclass="prio3">3</span> | src/Command/WatchCommand.php |220|[UnusedPrivateMethod](https://phpmd.org/rules/unusedcode.html#unusedprivatemethod)| Avoid unused private methods such as `formatHtml`. |
13
+
| <spanclass="prio3">3</span> | src/Command/WatchCommand.php |222|[UnusedPrivateMethod](https://phpmd.org/rules/unusedcode.html#unusedprivatemethod)| Avoid unused private methods such as `parseFile`. |
14
+
| <spanclass="prio3">3</span> | src/Command/WatchCommand.php |222|[UnusedFormalParameter](https://phpmd.org/rules/unusedcode.html#unusedformalparameter)| Avoid unused parameters such as `$generator`. |
15
+
| <spanclass="prio3">3</span> | src/Command/WatchCommand.php |222|[UnusedFormalParameter](https://phpmd.org/rules/unusedcode.html#unusedformalparameter)| Avoid unused parameters such as `$sourceFile`. |
16
+
| <spanclass="prio3">3</span> | src/Command/WatchCommand.php |222|[UnusedFormalParameter](https://phpmd.org/rules/unusedcode.html#unusedformalparameter)| Avoid unused parameters such as `$dest`. |
17
+
| <spanclass="prio3">3</span> | src/Command/WatchCommand.php |222|[UnusedFormalParameter](https://phpmd.org/rules/unusedcode.html#unusedformalparameter)| Avoid unused parameters such as `$io`. |
18
+
| <spanclass="prio3">3</span> | src/Command/WatchCommand.php |227|[UnusedPrivateMethod](https://phpmd.org/rules/unusedcode.html#unusedprivatemethod)| Avoid unused private methods such as `formatHtml`. |
19
19
| <spanclass="prio3">3</span> | src/Service/ComponentBuilder.php | 50 |[UnusedLocalVariable](https://phpmd.org/rules/unusedcode.html#unusedlocalvariable)| Avoid unused local variables such as `$childElement`. |
20
20
21
21
Issues detected: 9
@@ -55,9 +55,9 @@ Issues detected: 15
55
55
| <spanclass="prio1">1</span> | src/Command/WatchCommand.php | 113 |[StaticAccess](https://phpmd.org/rules/cleancode.html#staticaccess)| Avoid using static access to class `\Revolt\EventLoop` in method `__invoke`. |
56
56
| <spanclass="prio1">1</span> | src/Command/WatchCommand.php | 117 |[StaticAccess](https://phpmd.org/rules/cleancode.html#staticaccess)| Avoid using static access to class `\Revolt\EventLoop` in method `__invoke`. |
57
57
| <spanclass="prio1">1</span> | src/Command/WatchCommand.php | 122 |[StaticAccess](https://phpmd.org/rules/cleancode.html#staticaccess)| Avoid using static access to class `\Revolt\EventLoop` in method `__invoke`. |
58
-
| <spanclass="prio1">1</span> | src/Command/WatchCommand.php |164|[StaticAccess](https://phpmd.org/rules/cleancode.html#staticaccess)| Avoid using static access to class `\Html\Delegator\HTMLDocumentDelegator` in method `processSingleFile`. |
59
-
| <spanclass="prio1">1</span> | src/Command/WatchCommand.php |220|[ErrorControlOperator](http://phpmd.org/rules/cleancode.html#errorcontroloperator)| Remove error control operator `@` on line 226. |
60
-
| <spanclass="prio1">1</span> | src/Command/WatchCommand.php |234|[ElseExpression](https://phpmd.org/rules/cleancode.html#elseexpression)| The method createDirectory uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. |
58
+
| <spanclass="prio1">1</span> | src/Command/WatchCommand.php |169|[StaticAccess](https://phpmd.org/rules/cleancode.html#staticaccess)| Avoid using static access to class `\Html\Delegator\HTMLDocumentDelegator` in method `processSingleFile`. |
59
+
| <spanclass="prio1">1</span> | src/Command/WatchCommand.php |227|[ErrorControlOperator](http://phpmd.org/rules/cleancode.html#errorcontroloperator)| Remove error control operator `@` on line 233. |
60
+
| <spanclass="prio1">1</span> | src/Command/WatchCommand.php |241|[ElseExpression](https://phpmd.org/rules/cleancode.html#elseexpression)| The method createDirectory uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. |
61
61
| <spanclass="prio1">1</span> | src/Delegator/HTMLDocumentDelegator.php | 87 |[StaticAccess](https://phpmd.org/rules/cleancode.html#staticaccess)| Avoid using static access to class `\DOM\HTMLDocument` in method `createEmpty`. |
62
62
| <spanclass="prio1">1</span> | src/Delegator/HTMLDocumentDelegator.php | 92 |[StaticAccess](https://phpmd.org/rules/cleancode.html#staticaccess)| Avoid using static access to class `\DOM\HTMLDocument` in method `createFromString`. |
63
63
| <spanclass="prio1">1</span> | src/Delegator/HTMLDocumentDelegator.php | 97 |[StaticAccess](https://phpmd.org/rules/cleancode.html#staticaccess)| Avoid using static access to class `\DOM\HTMLDocument` in method `createFromFile`. |
@@ -105,6 +105,8 @@ Issues detected: 15
105
105
| <spanclass="prio1">1</span> | src/Element/Void/Track.php | 114 |[StaticAccess](https://phpmd.org/rules/cleancode.html#staticaccess)| Avoid using static access to class `\Html\Enum\KindEnum` in method `setKind`. |
106
106
| <spanclass="prio1">1</span> | src/Service/ComponentBuilder.php | 54 |[ElseExpression](https://phpmd.org/rules/cleancode.html#elseexpression)| The method buildDOM uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. |
107
107
| <spanclass="prio1">1</span> | src/Service/ComponentBuilder.php | 63 |[ElseExpression](https://phpmd.org/rules/cleancode.html#elseexpression)| The method buildDOM uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. |
108
+
| <spanclass="prio1">1</span> | src/TemplateGenerator/TwigGenerator.php | 64 |[MissingImport](http://phpmd.org/rules/cleancode.html#MissingImport)| Missing class import via use statement (line `64`, column `30`). |
109
+
| <spanclass="prio1">1</span> | src/TemplateGenerator/TwigGenerator.php | 85 |[MissingImport](http://phpmd.org/rules/cleancode.html#MissingImport)| Missing class import via use statement (line `85`, column `30`). |
108
110
| <spanclass="prio1">1</span> | src/Trait/GlobalAttributesTrait.php | 189 |[StaticAccess](https://phpmd.org/rules/cleancode.html#staticaccess)| Avoid using static access to class `\Html\Enum\AutoCapitalizeEnum` in method `setAutoCapitalize`. |
109
111
| <spanclass="prio1">1</span> | src/Trait/GlobalAttributesTrait.php | 209 |[StaticAccess](https://phpmd.org/rules/cleancode.html#staticaccess)| Avoid using static access to class `\Html\Enum\ContentEditableEnum` in method `setContentEditable`. |
110
112
| <spanclass="prio1">1</span> | src/Trait/GlobalAttributesTrait.php | 216 |[StaticAccess](https://phpmd.org/rules/cleancode.html#staticaccess)| Avoid using static access to class `\Html\Enum\ContentEditableEnum` in method `setContentEditable`. |
@@ -120,7 +122,7 @@ Issues detected: 15
120
122
| <spanclass="prio1">1</span> | src/Trait/GlobalAttributesTrait.php | 456 |[StaticAccess](https://phpmd.org/rules/cleancode.html#staticaccess)| Avoid using static access to class `\Html\Enum\SpellCheckEnum` in method `setSpellCheck`. |
121
123
| <spanclass="prio1">1</span> | src/Trait/GlobalAttributesTrait.php | 459 |[StaticAccess](https://phpmd.org/rules/cleancode.html#staticaccess)| Avoid using static access to class `\Html\Enum\SpellCheckEnum` in method `setSpellCheck`. |
122
124
123
-
Issues detected: 75
125
+
Issues detected: 77
124
126
## Design
125
127
126
128
| Priority | File | Line | Rule | Message |
@@ -132,9 +134,9 @@ Issues detected: 75
132
134
| <spanclass="prio1">1</span> | src/Command/WatchCommand.php | 69 |[ExitExpression](https://phpmd.org/rules/design.html#exitexpression)| The method __invoke() contains an exit expression. |
133
135
| <spanclass="prio1">1</span> | src/Command/WatchCommand.php | 119 |[ExitExpression](https://phpmd.org/rules/design.html#exitexpression)| The method __invoke() contains an exit expression. |
134
136
| <spanclass="prio1">1</span> | src/Command/WatchCommand.php | 161 |[ExitExpression](https://phpmd.org/rules/design.html#exitexpression)| The method processSingleFile() contains an exit expression. |
135
-
| <spanclass="prio1">1</span> | src/Command/WatchCommand.php |186|[ExitExpression](https://phpmd.org/rules/design.html#exitexpression)| The method processSingleFile() contains an exit expression. |
136
-
| <spanclass="prio1">1</span> | src/Command/WatchCommand.php |236|[ExitExpression](https://phpmd.org/rules/design.html#exitexpression)| The method createDirectory() contains an exit expression. |
137
+
| <spanclass="prio1">1</span> | src/Command/WatchCommand.php |193|[ExitExpression](https://phpmd.org/rules/design.html#exitexpression)| The method processSingleFile() contains an exit expression. |
138
+
| <spanclass="prio1">1</span> | src/Command/WatchCommand.php |243|[ExitExpression](https://phpmd.org/rules/design.html#exitexpression)| The method createDirectory() contains an exit expression. |
0 commit comments