Fix the issues reported by phpcs

Created on 4 July 2023, over 1 year ago
Updated 24 October 2023, about 1 year ago

Problem/Motivation
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig /var/www/html/VB/drupal-10.1.0/modules/contrib/vardot_support-1.1.0-beta2

FILE: ...upport-1.1.0-beta2/vardot_support/boilerplate/drush/sites/devshop.site.yml
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
8 | ERROR | [x] Expected 1 newline at end of file; 2 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: ...vardot_support-1.1.0-beta2/vardot_support/boilerplate/.platform/routes.yml
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
17 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: ...es/contrib/vardot_support-1.1.0-beta2/vardot_support/boilerplate/README.md
--------------------------------------------------------------------------------
FOUND 1 ERROR AND 5 WARNINGS AFFECTING 6 LINES
--------------------------------------------------------------------------------
13 | WARNING | [ ] Line exceeds 80 characters; contains 87 characters
15 | WARNING | [ ] Line exceeds 80 characters; contains 88 characters
27 | WARNING | [ ] Line exceeds 80 characters; contains 115 characters
40 | WARNING | [ ] Line exceeds 80 characters; contains 105 characters
46 | WARNING | [ ] Line exceeds 80 characters; contains 89 characters
51 | ERROR | [x] Expected 1 newline at end of file; 3 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: ...ardot_support-1.1.0-beta2/vardot_support/src/Commands/ComposerCommands.php
--------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
--------------------------------------------------------------------------------
16 | ERROR | [ ] Missing parameter comment
27 | ERROR | [ ] Inline doc block comments are not allowed; use "/* Comment
| | */" or "// Comment" instead
34 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
38 | ERROR | [x] Expected 1 blank line after function; 0 found
39 | ERROR | [x] The closing brace for the class must have an empty line
| | before it
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: ...ot_support/vardot_subscription/src/Form/VardotSubscriptionSettingsForm.php
--------------------------------------------------------------------------------
FOUND 7 ERRORS AND 4 WARNINGS AFFECTING 10 LINES
--------------------------------------------------------------------------------
13 | ERROR | [x] Whitespace found at end of line
20 | WARNING | [ ] t() calls should be avoided in classes, use
| | \Drupal\Core\StringTranslation\StringTranslationTrait and
| | $this->t() instead
25 | WARNING | [ ] t() calls should be avoided in classes, use
| | \Drupal\Core\StringTranslation\StringTranslationTrait and
| | $this->t() instead
27 | WARNING | [ ] t() calls should be avoided in classes, use
| | \Drupal\Core\StringTranslation\StringTranslationTrait and
| | $this->t() instead
33 | WARNING | [ ] t() calls should be avoided in classes, use
| | \Drupal\Core\StringTranslation\StringTranslationTrait and
| | $this->t() instead
34 | ERROR | [x] Short array syntax must be used to define arrays
40 | ERROR | [x] Whitespace found at end of line
47 | ERROR | [x] Whitespace found at end of line
56 | ERROR | [x] Whitespace found at end of line
68 | ERROR | [x] Expected 1 newline at end of file; 0 found
68 | ERROR | [x] The closing brace for the class must have an empty line
| | before it
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: ...-1.1.0-beta2/vardot_support/vardot_subscription/vardot_subscription.module
--------------------------------------------------------------------------------
FOUND 18 ERRORS AND 12 WARNINGS AFFECTING 27 LINES
--------------------------------------------------------------------------------
5 | ERROR | [x] Function comment short description must start with exactly
| | one space
8 | WARNING | [x] Unused use statement
9 | WARNING | [x] Unused use statement
11 | WARNING | [x] Unused use statement
11 | ERROR | [x] Use statements should be sorted alphabetically. The first
| | wrong one is Drupal\Core\Link.
12 | WARNING | [x] Unused use statement
13 | WARNING | [x] Unused use statement
13 | ERROR | [x] When importing a class with "use", do not include a
| | leading \
19 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
38 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
49 | WARNING | [ ] Line exceeds 80 characters; contains 86 characters
68 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
79 | ERROR | [x] Each PHP statement must be on a line by itself
97 | ERROR | [x] No space found before comment text; expected "// /**" but
| | found "///**"
100 | ERROR | [x] No space found before comment text; expected "// function
| | vardot_subscription_check_subscription($params = array())
| | {" but found "//function
| | vardot_subscription_check_subscription($params = array())
| | {"
102 | WARNING | [ ] Line exceeds 80 characters; contains 87 characters
107 | ERROR | [ ] Comment indentation error, expected only 2 spaces
113 | ERROR | [ ] Comment indentation error, expected only 2 spaces
121 | WARNING | [ ] Line exceeds 80 characters; contains 83 characters
123 | ERROR | [ ] Comment indentation error, expected only 2 spaces
126 | ERROR | [ ] Comment indentation error, expected only 2 spaces
129 | ERROR | [ ] Comment indentation error, expected only 2 spaces
131 | WARNING | [ ] There must be no blank line following an inline comment
131 | ERROR | [x] No space found before comment text; expected "// }" but
| | found "//}"
134 | WARNING | [ ] Format should be "* Implements hook_foo().", "* Implements
| | hook_foo_BAR_ID_bar() for xyz_bar().",, "* Implements
| | hook_foo_BAR_ID_bar() for xyz-bar.html.twig.", "*
| | Implements hook_foo_BAR_ID_bar() for xyz-bar.tpl.php.", or
| | "* Implements hook_foo_BAR_ID_bar() for block templates."
136 | ERROR | [x] Expected 1 space before opening brace; found 0
137 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
155 | WARNING | [ ] Format should be "* Implements hook_foo().", "* Implements
| | hook_foo_BAR_ID_bar() for xyz_bar().",, "* Implements
| | hook_foo_BAR_ID_bar() for xyz-bar.html.twig.", "*
| | Implements hook_foo_BAR_ID_bar() for xyz-bar.tpl.php.", or
| | "* Implements hook_foo_BAR_ID_bar() for block templates."
163 | WARNING | [ ] Format should be "* Implements hook_foo().", "* Implements
| | hook_foo_BAR_ID_bar() for xyz_bar().",, "* Implements
| | hook_foo_BAR_ID_bar() for xyz-bar.html.twig.", "*
| | Implements hook_foo_BAR_ID_bar() for xyz-bar.tpl.php.", or
| | "* Implements hook_foo_BAR_ID_bar() for block templates."
167 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 18 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: ...eta2/vardot_support/vardot_subscription/vardot_subscription.links.task.yml
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
5 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: ...t_support/vardot_subscription/config/schema/vardot_subscription.schema.yml
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
3 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: ....1.0-beta2/vardot_support/vardot_subscription/vardot_subscription.info.yml
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE
--------------------------------------------------------------------------------
1 | WARNING | Remove "project" from the info file, it will be added by
| | drupal.org packaging automatically
1 | WARNING | Remove "datestamp" from the info file, it will be added by
| | drupal.org packaging automatically
1 | WARNING | Remove "version" from the info file, it will be added by
| | drupal.org packaging automatically
--------------------------------------------------------------------------------

FILE: ...ib/vardot_support-1.1.0-beta2/vardot_support/vardot_subscription/README.md
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
55 | ERROR | [x] Expected 1 newline at end of file; 2 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: ...1.1.0-beta2/vardot_support/vardot_subscription/vardot_subscription.install
--------------------------------------------------------------------------------
FOUND 6 ERRORS AND 4 WARNINGS AFFECTING 8 LINES
--------------------------------------------------------------------------------
15 | WARNING | [ ] Line exceeds 80 characters; contains 94 characters
15 | WARNING | [x] There must be no blank line following an inline comment
15 | WARNING | [ ] There must be no blank line following an inline comment
31 | ERROR | [x] Expected 1 space after IF keyword; 0 found
36 | ERROR | [x] Missing function doc comment
71 | WARNING | [ ] Unused variable $key.
129 | ERROR | [x] Expected 1 space before "?"; 0 found
130 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
132 | ERROR | [x] Expected 1 space before ":"; 0 found
133 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: .../vardot_support-1.1.0-beta2/vardot_support/settings/settings.flysystem.php
--------------------------------------------------------------------------------
FOUND 14 ERRORS AFFECTING 14 LINES
--------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
3 | ERROR | [x] Doc comment short description must be on the first line
11 | ERROR | [ ] Doc comment short description must be on a single line,
| | further text should be a separate paragraph
13 | ERROR | [x] Doc comment star missing
14 | ERROR | [x] Doc comment star missing
15 | ERROR | [x] Doc comment star missing
16 | ERROR | [x] Doc comment star missing
17 | ERROR | [x] Doc comment star missing
18 | ERROR | [x] Doc comment star missing
19 | ERROR | [x] Doc comment star missing
20 | ERROR | [x] Doc comment star missing
21 | ERROR | [x] Doc comment star missing
22 | ERROR | [x] Doc comment star missing
23 | ERROR | [x] Doc comment star missing
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 13 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: ...ib/vardot_support-1.1.0-beta2/vardot_support/settings/settings.devshop.php
--------------------------------------------------------------------------------
FOUND 6 ERRORS AND 2 WARNINGS AFFECTING 6 LINES
--------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
3 | ERROR | [x] Doc comment short description must be on the first line
3 | ERROR | [x] Doc comment short description must start with a capital
| | letter
3 | ERROR | [x] Doc comment short description must end with a full stop
5 | WARNING | [ ] Line exceeds 80 characters; contains 89 characters
7 | WARNING | [ ] Line exceeds 80 characters; contains 92 characters
8 | ERROR | [x] There must be exactly one blank line after the file comment
11 | ERROR | [x] Perl-style comments are not allowed; use "// Comment"
| | instead
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: ...vardot_support-1.1.0-beta2/vardot_support/settings/settings.platformsh.php
--------------------------------------------------------------------------------
FOUND 12 ERRORS AND 11 WARNINGS AFFECTING 22 LINES
--------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank
| | line
6 | ERROR | [x] Doc comment long description must end with a full stop
11 | ERROR | [x] Perl-style comments are not allowed; use "// Comment"
| | instead
15 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced
| | with use statements
27 | WARNING | [x] A comma should follow the last multiline array item.
| | Found: ]
31 | WARNING | [ ] Line exceeds 80 characters; contains 91 characters
32 | WARNING | [ ] Line exceeds 80 characters; contains 92 characters
38 | ERROR | [x] Expected newline after closing brace
63 | WARNING | [ ] Line exceeds 80 characters; contains 101 characters
80 | ERROR | [ ] The array declaration extends to column 106 (the limit is
| | 80). The array content should be split up over multiple
| | lines
107 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0
123 | WARNING | [ ] Line exceeds 80 characters; contains 89 characters
124 | WARNING | [ ] Line exceeds 80 characters; contains 90 characters
125 | WARNING | [ ] Line exceeds 80 characters; contains 87 characters
126 | WARNING | [ ] Line exceeds 80 characters; contains 94 characters
127 | WARNING | [ ] Line exceeds 80 characters; contains 89 characters
135 | ERROR | [x] list(...) is forbidden, use [...] instead.
135 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL"
| | but found "null"
140 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
144 | ERROR | [x] Case breaking statements must be followed by a single
| | blank line
152 | WARNING | [ ] Line exceeds 80 characters; contains 87 characters
154 | WARNING | [ ] Line exceeds 80 characters; contains 98 characters
168 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 12 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: ...rib/vardot_support-1.1.0-beta2/vardot_support/settings/settings.vardot.php
--------------------------------------------------------------------------------
FOUND 31 ERRORS AND 5 WARNINGS AFFECTING 30 LINES
--------------------------------------------------------------------------------
7 | WARNING | [ ] Line exceeds 80 characters; contains 142 characters
13 | WARNING | [ ] Line exceeds 80 characters; contains 104 characters
26 | ERROR | [x] Doc comment short description must end with a full stop
34 | ERROR | [x] Additional blank lines found at end of doc comment
39 | WARNING | [x] '@TODO: Show a warning in status page, if we can.' should
| | match the format '@todo Fix problem X here.'
43 | ERROR | [x] Doc comment short description must end with a full stop
50 | ERROR | [x] Doc comment short description must end with a full stop
70 | ERROR | [x] Doc comment short description must end with a full stop
77 | ERROR | [x] Doc comment short description must end with a full stop
81 | ERROR | [x] Additional blank lines found at end of doc comment
84 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
87 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
87 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
90 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
90 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
93 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
93 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
96 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
96 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
99 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
99 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
108 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
115 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
117 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
117 | ERROR | [x] "include" is a statement not a function; no parentheses
| | are required
119 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
121 | ERROR | [x] "include" is a statement not a function; no parentheses
| | are required
128 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
133 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
138 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
139 | ERROR | [x] Expected 1 space(s) after cast statement; 2 found
143 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
144 | WARNING | [x] '@TODO: Set DRUPAL_SITE_HOST_PROVIDER=ovh and
| | DRUPAL_ENV=prod on OVH.' should match the format '@todo
| | Fix problem X here.'
149 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
174 | WARNING | [x] '@TODO: Detect appropriate namespace depending on drupal
| | version.' should match the format '@todo Fix problem X
| | here.'
177 | ERROR | [x] Expected 1 newline at end of file; 2 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 34 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: ...es/contrib/vardot_support-1.1.0-beta2/vardot_support/settings/autoload.php
--------------------------------------------------------------------------------
FOUND 4 ERRORS AND 1 WARNING AFFECTING 5 LINES
--------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
3 | ERROR | [x] Doc comment short description must be on the first line
7 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
12 | ERROR | [ ] Doc comment short description must be on a single line,
| | further text should be a separate paragraph
18 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but
| | found "null"
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: ...ib/vardot_support-1.1.0-beta2/vardot_support/settings/settings.default.php
--------------------------------------------------------------------------------
FOUND 8 ERRORS AND 3 WARNINGS AFFECTING 8 LINES
--------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
3 | ERROR | [x] Doc comment short description must be on the first line
3 | ERROR | [x] Doc comment short description must start with a capital
| | letter
3 | ERROR | [x] Doc comment short description must end with a full stop
6 | WARNING | [ ] Line exceeds 80 characters; contains 127 characters
6 | ERROR | [x] Doc comment long description must end with a full stop
8 | WARNING | [ ] Line exceeds 80 characters; contains 130 characters
9 | ERROR | [x] There must be exactly one blank line after the file comment
13 | ERROR | [x] Doc comment short description must end with a full stop
15 | WARNING | [ ] Line exceeds 80 characters; contains 88 characters
17 | ERROR | [x] Expected 1 newline at end of file; 2 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: ...trib/vardot_support-1.1.0-beta2/vardot_support/settings/settings.lando.php
--------------------------------------------------------------------------------
FOUND 9 ERRORS AFFECTING 8 LINES
--------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
3 | ERROR | [x] Doc comment short description must be on the first line
3 | ERROR | [x] Doc comment short description must start with a capital
| | letter
4 | ERROR | [ ] Doc comment short description must be on a single line,
| | further text should be a separate paragraph
10 | ERROR | [x] Perl-style comments are not allowed; use "// Comment" instead
13 | ERROR | [x] Perl-style comments are not allowed; use "// Comment" instead
15 | ERROR | [x] Perl-style comments are not allowed; use "// Comment" instead
17 | ERROR | [x] Perl-style comments are not allowed; use "// Comment" instead
20 | ERROR | [x] Perl-style comments are not allowed; use "// Comment" instead
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: ...ules/contrib/vardot_support-1.1.0-beta2/vardot_support/docs/MAINTENANCE.md
--------------------------------------------------------------------------------
FOUND 1 ERROR AND 7 WARNINGS AFFECTING 8 LINES
--------------------------------------------------------------------------------
14 | WARNING | [ ] Line exceeds 80 characters; contains 82 characters
16 | WARNING | [ ] Line exceeds 80 characters; contains 83 characters
24 | WARNING | [ ] Line exceeds 80 characters; contains 86 characters
28 | WARNING | [ ] Line exceeds 80 characters; contains 147 characters
29 | WARNING | [ ] Line exceeds 80 characters; contains 271 characters
30 | WARNING | [ ] Line exceeds 80 characters; contains 183 characters
41 | WARNING | [ ] Line exceeds 80 characters; contains 82 characters
47 | ERROR | [x] Expected 1 newline at end of file; 2 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: ...10.1.0/modules/contrib/vardot_support-1.1.0-beta2/vardot_support/README.md
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 13 WARNINGS AFFECTING 13 LINES
--------------------------------------------------------------------------------
5 | WARNING | Line exceeds 80 characters; contains 85 characters
15 | WARNING | Line exceeds 80 characters; contains 98 characters
18 | WARNING | Line exceeds 80 characters; contains 105 characters
28 | WARNING | Line exceeds 80 characters; contains 134 characters
34 | WARNING | Line exceeds 80 characters; contains 178 characters
40 | WARNING | Line exceeds 80 characters; contains 112 characters
41 | WARNING | Line exceeds 80 characters; contains 99 characters
69 | WARNING | Line exceeds 80 characters; contains 88 characters
72 | WARNING | Line exceeds 80 characters; contains 102 characters
73 | WARNING | Line exceeds 80 characters; contains 152 characters
81 | WARNING | Line exceeds 80 characters; contains 134 characters
88 | WARNING | Line exceeds 80 characters; contains 81 characters
92 | WARNING | Line exceeds 80 characters; contains 188 characters
--------------------------------------------------------------------------------

FILE: ...ardot_support/vardot_site_audit/src/Plugin/SiteAuditCheck/SyslogStatus.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
19 | ERROR | Doc comment short description must start with a capital letter
--------------------------------------------------------------------------------

FILE: ...ardot_support/vardot_site_audit/src/Plugin/SiteAuditCheck/LinkitStatus.php
--------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
--------------------------------------------------------------------------------
21 | ERROR | Doc comment short description must start with a capital letter
28 | ERROR | Doc comment short description must start with a capital letter
33 | ERROR | Doc comment short description must start with a capital letter
40 | ERROR | Doc comment short description must start with a capital letter
47 | ERROR | Doc comment short description must start with a capital letter
60 | ERROR | Doc comment short description must start with a capital letter
--------------------------------------------------------------------------------

FILE: ...dot_support/vardot_site_audit/src/Plugin/SiteAuditCheck/ViewsUiEnabled.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
19 | ERROR | Doc comment short description must start with a capital letter
--------------------------------------------------------------------------------

FILE: ...port/vardot_site_audit/src/Plugin/SiteAuditCheck/VardotCachePageExpire.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
20 | ERROR | Doc comment short description must start with a capital letter
--------------------------------------------------------------------------------

FILE: ...ardot_support/vardot_site_audit/src/Plugin/SiteAuditCheck/RavenEnabled.php
--------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
--------------------------------------------------------------------------------
21 | ERROR | Doc comment short description must start with a capital letter
28 | ERROR | Doc comment short description must start with a capital letter
34 | ERROR | Doc comment short description must start with a capital letter
41 | ERROR | Doc comment short description must start with a capital letter
48 | ERROR | Doc comment short description must start with a capital letter
61 | ERROR | Doc comment short description must start with a capital letter
--------------------------------------------------------------------------------

FILE: ...t_support/vardot_site_audit/src/Plugin/SiteAuditCheck/TwigCacheEnabled.php
--------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
--------------------------------------------------------------------------------
20 | ERROR | Doc comment short description must start with a capital letter
27 | ERROR | Doc comment short description must start with a capital letter
34 | ERROR | Doc comment short description must start with a capital letter
41 | ERROR | Doc comment short description must start with a capital letter
46 | ERROR | Doc comment short description must start with a capital letter
55 | ERROR | Doc comment short description must start with a capital letter
--------------------------------------------------------------------------------

FILE: ...rdot_support/vardot_site_audit/src/Plugin/SiteAuditCheck/MailerService.php
--------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
--------------------------------------------------------------------------------
21 | ERROR | Doc comment short description must start with a capital letter
28 | ERROR | Doc comment short description must start with a capital letter
35 | ERROR | Doc comment short description must start with a capital letter
42 | ERROR | Doc comment short description must start with a capital letter
47 | ERROR | Doc comment short description must start with a capital letter
56 | ERROR | Doc comment short description must start with a capital letter
--------------------------------------------------------------------------------

FILE: ...ort/vardot_site_audit/src/Plugin/SiteAuditCheck/VardotViewsCacheOutput.php
--------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------
6 | ERROR | [x] Use statements should be sorted alphabetically. The first
| | wrong one is
| | Drupal\site_audit\Plugin\SiteAuditCheck\ViewsCacheOutput.
21 | ERROR | [ ] Doc comment short description must start with a capital
| | letter
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: ...ot_support/vardot_site_audit/src/Plugin/SiteAuditCheck/RedirectEnabled.php
--------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------
18 | ERROR | Doc comment short description must start with a capital letter
27 | ERROR | Doc comment short description must start with a capital letter
--------------------------------------------------------------------------------

FILE: ...support/vardot_site_audit/src/Plugin/SiteAuditCheck/CommerceLogEnabled.php
--------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------
21 | ERROR | Doc comment short description must start with a capital letter
30 | ERROR | Doc comment short description must start with a capital letter
--------------------------------------------------------------------------------

FILE: ...t/vardot_site_audit/src/Plugin/SiteAuditCheck/RedisDynamicCacheEnabled.php
--------------------------------------------------------------------------------
FOUND 21 ERRORS AND 2 WARNINGS AFFECTING 17 LINES
--------------------------------------------------------------------------------
6 | WARNING | [x] Unused use statement
25 | WARNING | [ ] Line exceeds 80 characters; contains 84 characters
35 | ERROR | [x] Space before opening parenthesis of function call
| | prohibited
45 | ERROR | [ ] Parameter $configuration is not described in comment
45 | ERROR | [ ] Parameter $plugin_id is not described in comment
45 | ERROR | [ ] Parameter $plugin_definition is not described in comment
45 | ERROR | [ ] Parameter $database is not described in comment
45 | ERROR | [ ] Parameter $logger_factory is not described in comment
48 | ERROR | [ ] Missing parameter comment
48 | ERROR | [ ] Missing parameter type
49 | ERROR | [x] Doc comment parameter name "$configuration." must not end
| | with a dot
50 | ERROR | [x] Doc comment parameter name "$plugin_id." must not end with
| | a dot
51 | ERROR | [x] Doc comment parameter name "$plugin_definition." must not
| | end with a dot
52 | ERROR | [x] Data types in @param tags need to be fully namespaced
52 | ERROR | [x] Doc comment parameter name "$database." must not end with
| | a dot
60 | ERROR | [ ] Doc comment short description must start with a capital
| | letter
67 | ERROR | [ ] Doc comment short description must start with a capital
| | letter
73 | ERROR | [ ] Doc comment short description must start with a capital
| | letter
80 | ERROR | [ ] Doc comment short description must start with a capital
| | letter
86 | ERROR | [ ] Doc comment short description must start with a capital
| | letter
95 | ERROR | [ ] Doc comment short description must start with a capital
| | letter
98 | ERROR | [x] Expected 1 space after "=="; 2 found
104 | ERROR | [x] Expected 1 newline at end of file; 2 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 9 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: ...ardot_support/vardot_site_audit/src/Plugin/SiteAuditCheck/DBLogEnabled.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
19 | ERROR | Doc comment short description must start with a capital letter
--------------------------------------------------------------------------------

FILE: ...ardot_support/vardot_site_audit/src/Plugin/SiteAuditCheck/DevelEnabled.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
19 | ERROR | Doc comment short description must start with a capital letter
--------------------------------------------------------------------------------

FILE: ...t_support/vardot_site_audit/src/Plugin/SiteAuditCheck/MasqueradeStatus.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
19 | ERROR | Doc comment short description must start with a capital letter
--------------------------------------------------------------------------------

FILE: .../vardot_site_audit/src/Plugin/SiteAuditCheck/VardotUsersWhoIsNumberOne.php
--------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------
23 | ERROR | Doc comment short description must start with a capital letter
30 | ERROR | Doc comment short description must start with a capital letter
--------------------------------------------------------------------------------

FILE: ...t_support/vardot_site_audit/src/Plugin/SiteAuditCheck/SiteErrorsStatus.php
--------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
--------------------------------------------------------------------------------
21 | ERROR | Doc comment short description must start with a capital letter
28 | ERROR | Doc comment short description must start with a capital letter
33 | ERROR | Doc comment short description must start with a capital letter
40 | ERROR | Doc comment short description must start with a capital letter
45 | ERROR | Doc comment short description must start with a capital letter
54 | ERROR | Doc comment short description must start with a capital letter
--------------------------------------------------------------------------------

FILE: ...upport/vardot_site_audit/src/Plugin/SiteAuditCheck/UltimateCronEnabled.php
--------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------
18 | ERROR | Doc comment short description must start with a capital letter
27 | ERROR | Doc comment short description must start with a capital letter
--------------------------------------------------------------------------------

FILE: ...ort/vardot_site_audit/src/Plugin/SiteAuditCheck/GoogleAnalyticsEnabled.php
--------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------
18 | ERROR | Doc comment short description must start with a capital letter
27 | ERROR | Doc comment short description must start with a capital letter
--------------------------------------------------------------------------------

FILE: ...pport/vardot_site_audit/src/Plugin/SiteAuditCheck/VardotUsersRolesList.php
--------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
--------------------------------------------------------------------------------
21 | ERROR | Doc comment short description must start with a capital letter
28 | ERROR | Doc comment short description must start with a capital letter
37 | ERROR | Doc comment short description must start with a capital letter
--------------------------------------------------------------------------------

FILE: ...rt/vardot_site_audit/src/Plugin/SiteAuditCheck/VardotViewsCacheResults.php
--------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------
6 | ERROR | [x] Use statements should be sorted alphabetically. The first
| | wrong one is
| | Drupal\site_audit\Plugin\SiteAuditCheck\ViewsCacheResults.
21 | ERROR | [ ] Doc comment short description must start with a capital
| | letter
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: ...ardot_support/vardot_site_audit/src/Plugin/SiteAuditCheck/SecKitStatus.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
19 | ERROR | Doc comment short description must start with a capital letter
--------------------------------------------------------------------------------

FILE: .../vardot_site_audit/src/Plugin/SiteAuditCheck/VarbaseDevelopmentEnabled.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
19 | ERROR | Doc comment short description must start with a capital letter
--------------------------------------------------------------------------------

FILE: ...vardot_site_audit/src/Plugin/SiteAuditCheck/VardotBestPracticesFast404.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
21 | ERROR | Doc comment short description must start with a capital letter
--------------------------------------------------------------------------------

FILE: ..._support/vardot_site_audit/src/Plugin/SiteAuditCheck/ImageMagickStatus.php
--------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
--------------------------------------------------------------------------------
21 | ERROR | Doc comment short description must start with a capital letter
28 | ERROR | Doc comment short description must start with a capital letter
33 | ERROR | Doc comment short description must start with a capital letter
40 | ERROR | Doc comment short description must start with a capital letter
47 | ERROR | Doc comment short description must start with a capital letter
61 | ERROR | Doc comment short description must start with a capital letter
--------------------------------------------------------------------------------

FILE: ...rt/vardot_site_audit/src/Plugin/SiteAuditCheck/AlternativeCacheEnabled.php
--------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
--------------------------------------------------------------------------------
21 | ERROR | Doc comment short description must start with a capital letter
28 | ERROR | Doc comment short description must start with a capital letter
33 | ERROR | Doc comment short description must start with a capital letter
40 | ERROR | Doc comment short description must start with a capital letter
45 | ERROR | Doc comment short description must start with a capital letter
54 | ERROR | Doc comment short description must start with a capital letter
--------------------------------------------------------------------------------

FILE: ...ite_audit/src/Plugin/SiteAuditCheck/ConfigurationSynchronizationStatus.php
--------------------------------------------------------------------------------
FOUND 25 ERRORS AND 2 WARNINGS AFFECTING 20 LINES
--------------------------------------------------------------------------------
9 | ERROR | [x] Use statements should be sorted alphabetically. The first
| | wrong one is Drupal\Core\Config\StorageInterface.
67 | ERROR | [x] Expected 1 blank line before function; 2 found
81 | ERROR | [ ] Parameter $configuration is not described in comment
81 | ERROR | [ ] Parameter $plugin_id is not described in comment
81 | ERROR | [ ] Parameter $plugin_definition is not described in comment
81 | ERROR | [ ] Parameter $database is not described in comment
88 | ERROR | [ ] Doc comment for parameter $config_manager does not match
| | actual variable name $logger_factory
92 | ERROR | [x] Doc comment parameter name "$configuration." must not end
| | with a dot
93 | ERROR | [x] Doc comment parameter name "$plugin_id." must not end with
| | a dot
94 | ERROR | [x] Doc comment parameter name "$plugin_definition." must not
| | end with a dot
95 | ERROR | [x] Data types in @param tags need to be fully namespaced
95 | ERROR | [x] Doc comment parameter name "$database." must not end with
| | a dot
96 | ERROR | [ ] Missing parameter comment
96 | ERROR | [x] Data types in @param tags need to be fully namespaced
104 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
104 | ERROR | [ ] Inline doc block comments are not allowed; use "/* Comment
| | */" or "// Comment" instead
111 | ERROR | [x] Data types in @param tags need to be fully namespaced
117 | ERROR | [ ] Doc comment short description must start with a capital
| | letter
124 | ERROR | [ ] Doc comment short description must start with a capital
| | letter
130 | ERROR | [ ] Doc comment short description must start with a capital
| | letter
137 | ERROR | [ ] Doc comment short description must start with a capital
| | letter
143 | ERROR | [ ] Doc comment short description must start with a capital
| | letter
154 | ERROR | [ ] Description for the @return value must be on the next line
161 | ERROR | [ ] Doc comment short description must start with a capital
| | letter
169 | WARNING | [ ] Line exceeds 80 characters; contains 90 characters
178 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL"
| | but found "null"
178 | WARNING | [ ] Unused variable $op.
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 11 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: ...ort/vardot_site_audit/src/Plugin/SiteAuditCheck/VardotImageCompression.php
--------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
--------------------------------------------------------------------------------
21 | ERROR | Doc comment short description must start with a capital letter
28 | ERROR | Doc comment short description must start with a capital letter
33 | ERROR | Doc comment short description must start with a capital letter
40 | ERROR | Doc comment short description must start with a capital letter
45 | ERROR | Doc comment short description must start with a capital letter
54 | ERROR | Doc comment short description must start with a capital letter
--------------------------------------------------------------------------------

FILE: ...t_support/vardot_site_audit/src/Plugin/SiteAuditCheck/ModuleStatusBase.php
--------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
--------------------------------------------------------------------------------
20 | ERROR | Doc comment short description must start with a capital letter
32 | ERROR | Doc comment short description must start with a capital letter
37 | ERROR | Doc comment short description must start with a capital letter
49 | ERROR | Doc comment short description must start with a capital letter
54 | ERROR | Doc comment short description must start with a capital letter
68 | ERROR | Doc comment short description must start with a capital letter
--------------------------------------------------------------------------------

FILE: ...rt-1.1.0-beta2/vardot_support/vardot_site_audit/vardot_site_audit.info.yml
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE
--------------------------------------------------------------------------------
1 | WARNING | Remove "project" from the info file, it will be added by
| | drupal.org packaging automatically
1 | WARNING | Remove "datestamp" from the info file, it will be added by
| | drupal.org packaging automatically
1 | WARNING | Remove "version" from the info file, it will be added by
| | drupal.org packaging automatically
--------------------------------------------------------------------------------

FILE: .../contrib/vardot_support-1.1.0-beta2/vardot_support/vardot_support.info.yml
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 6 WARNINGS AFFECTING 4 LINES
--------------------------------------------------------------------------------
1 | WARNING | Remove "project" from the info file, it will be added by
| | drupal.org packaging automatically
1 | WARNING | Remove "datestamp" from the info file, it will be added by
| | drupal.org packaging automatically
1 | WARNING | Remove "version" from the info file, it will be added by
| | drupal.org packaging automatically
8 | WARNING | All dependencies must be prefixed with the project name, for
| | example "drupal:"
9 | WARNING | All dependencies must be prefixed with the project name, for
| | example "drupal:"
10 | WARNING | All dependencies must be prefixed with the project name, for
| | example "drupal:"
--------------------------------------------------------------------------------

Time: 205ms; Memory: 12MB

Steps to reproduce
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig /var/www/html/VB/drupal-10.1.0/modules/contrib/vardot_support-1.1.0-beta2

Given
When
Then

Proposed resolution

Remaining tasks

  • ✅ File an issue about this project
  • ❌ Addition/Change/Update/Fix to this project
  • ❌ Testing to ensure no regression
  • ❌ Automated unit/functional testing coverage
  • ❌ Developer Documentation support on feature change/addition
  • ❌ User Guide Documentation support on feature change/addition
  • ❌ Accessibility and Readability
  • ❌ Code review from 1 Varbase core team member
  • ❌ Full testing and approval
  • ❌ Credit contributors
  • ❌ Review with the product owner
  • ❌ Update Release Notes and Update Helper on new feature change/addition
  • ❌ Release

Varbase update type

  • ✅ No Update
  • ➖ Optional Update
  • ➖ Forced Update
  • ➖ Forced Update if Unchanged

User interface changes

  • N/A

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • N/A
📌 Task
Status

Needs work

Version

1.1

Component

Code

Created by

🇮🇳India indrapatil Bangalore

Live updates comments and jobs are added and updated live.
  • Coding standards

    It involves compliance with, or the content of coding standards. Requires broad community agreement.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024