Created on 10 July 2024, 4 months ago
Updated 11 July 2024, 4 months ago

Problem/Motivation

i have tested module. i found some issue.
i used this command:-
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,js,info,txt,md,yml,twig web/modules/contrib/otp_field/

FILE: /var/www/html/test10/web/modules/contrib/otp_field/otp_field.install
-----------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 2 LINES
-----------------------------------------------------------------------------------------------------------------------------------
 4 | ERROR   | [x] The second line in the file doc comment must be "@file"
 4 | ERROR   | [x] Doc comment short description must end with a full stop
 6 | WARNING | [ ] @author tags are not usually used in Drupal, because over time multiple contributors will touch the code anyway
-----------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/test10/web/modules/contrib/otp_field/modules/otp_field_sms/src/Form/OtpFieldSmsSettingsForm.php
-------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 1 WARNING AFFECTING 5 LINES
-------------------------------------------------------------------------------------------------------------------
  8 | ERROR   | [ ] Doc comment is empty
 43 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
 52 | ERROR   | [x] Expected 1 space after ELSE keyword; 0 found
 63 | ERROR   | [x] Expected 1 blank line after function; 0 found
 64 | 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: /var/www/html/test10/web/modules/contrib/otp_field/modules/otp_field_sms/src/Plugin/OtpFieldProcessor/OtpFieldSMSProcessor.php
-------------------------------------------------------------------------------------------------------------------------------------
FOUND 13 ERRORS AND 8 WARNINGS AFFECTING 18 LINES
-------------------------------------------------------------------------------------------------------------------------------------
   1 | ERROR   | [x] The PHP open tag must be followed by exactly one blank line
   1 | ERROR   | [x] Expected 1 line before declare statement, found 0.
   1 | ERROR   | [x] Expected strict_types=1, found strict_types = 1.
   9 | WARNING | [x] Unused use statement
  15 | WARNING | [x] Unused use statement
  21 | ERROR   | [x] Doc comment short description must end with a full stop
  29 | WARNING | [ ] @author tags are not usually used in Drupal, because over time multiple contributors will touch the code anyway
  36 | WARNING | [x] 'TODO: Make flood settings configurable.' should match the format '@todo Fix problem X here.'
  36 | ERROR   | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
  43 | ERROR   | [x] Doc comment short description must end with a full stop
  54 | ERROR   | [x] Blank lines are not allowed in a multi-line function declaration
  93 | ERROR   | [x] Expected 1 space after cast statement; 0 found
 101 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 108 | WARNING | [ ] Line exceeds 80 characters; contains 93 characters
 113 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 119 | WARNING | [ ] Line exceeds 80 characters; contains 93 characters
 124 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 130 | WARNING | [ ] Line exceeds 80 characters; contains 93 characters
 135 | ERROR   | [x] Inline comments must start with a capital letter
 138 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 142 | WARNING | [x] 'TODO: allowed_chars and length should be configurable.' should match the format '@todo Fix problem X here.'
-------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 12 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/test10/web/modules/contrib/otp_field/modules/otp_field_sms/otp_field_sms.install
----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
 4 | ERROR | [x] The second line in the file doc comment must be "@file"
----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------


FILE: /var/www/html/test10/web/modules/contrib/otp_field/modules/otp_field_sms/otp_field_sms.tokens.inc
-----------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
-----------------------------------------------------------------------------------------------------------------------------------
 4 | ERROR   | [x] The second line in the file doc comment must be "@file"
 6 | WARNING | [ ] @author tags are not usually used in Drupal, because over time multiple contributors will touch the code anyway
-----------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/test10/web/modules/contrib/otp_field/modules/otp_field_sms/otp_field_sms.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: /var/www/html/test10/web/modules/contrib/otp_field/modules/commerce_checkout_otp_login/src/Plugin/Commerce/CheckoutPane/OTPLogin.php
------------------------------------------------------------------------------------------------------------------------------------------
FOUND 44 ERRORS AND 16 WARNINGS AFFECTING 54 LINES
------------------------------------------------------------------------------------------------------------------------------------------
  15 | WARNING | [x] Unused use statement
  23 | ERROR   | [x] Doc comment long description must end with a full stop
  24 | ERROR   | [x] There must be exactly one blank line before the tags in a doc comment
  33 | WARNING | [ ] @author tags are not usually used in Drupal, because over time multiple contributors will touch the code anyway
  88 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
  91 | ERROR   | [x] Inline comments must start with a capital letter
 105 | ERROR   | [x] Inline comments must start with a capital letter
 108 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 114 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 145 | ERROR   | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
 151 | WARNING | [ ] #options values usually have to run through t() for translation
 152 | WARNING | [ ] #options values usually have to run through t() for translation
 158 | ERROR   | [x] Array indentation error, expected 8 spaces but found 10
 166 | ERROR   | [x] Array closing indentation error, expected 6 spaces but found 8
 168 | ERROR   | [x] Array indentation error, expected 8 spaces but found 10
 176 | ERROR   | [x] Array closing indentation error, expected 6 spaces but found 8
 181 | ERROR   | [x] Equals sign not aligned correctly; expected 1 space but found 3 spaces
 201 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 216 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 219 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
 223 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 232 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 247 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 249 | WARNING | [ ] Line exceeds 80 characters; contains 102 characters
 250 | WARNING | [ ] Line exceeds 80 characters; contains 131 characters
 250 | ERROR   | [ ] Comment indentation error, expected only 1 spaces
 251 | WARNING | [ ] Line exceeds 80 characters; contains 137 characters
 256 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 258 | ERROR   | [x] Data types in @var tags need to be fully namespaced
 267 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 270 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
 282 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 294 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 296 | WARNING | [ ] Line exceeds 80 characters; contains 101 characters
 297 | WARNING | [ ] Line exceeds 80 characters; contains 131 characters
 297 | ERROR   | [ ] Comment indentation error, expected only 1 spaces
 298 | WARNING | [ ] Line exceeds 80 characters; contains 135 characters
 303 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 304 | ERROR   | [x] Data types in @var tags need to be fully namespaced
 322 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 336 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 339 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 345 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 359 | ERROR   | [x] Inline comments must start with a capital letter
 363 | WARNING | [ ] Line exceeds 80 characters; contains 96 characters
 363 | ERROR   | [x] Inline comments must start with a capital letter
 367 | ERROR   | [x] Inline comments must start with a capital letter
 373 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 377 | WARNING | [ ] Line exceeds 80 characters; contains 94 characters
 377 | ERROR   | [x] Inline comments must start with a capital letter
 383 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 386 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 392 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 402 | ERROR   | [x] Inline comments must start with a capital letter
 406 | WARNING | [ ] Line exceeds 80 characters; contains 96 characters
 406 | ERROR   | [x] Inline comments must start with a capital letter
 410 | ERROR   | [x] Inline comments must start with a capital letter
 416 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 420 | WARNING | [ ] Line exceeds 80 characters; contains 94 characters
 420 | ERROR   | [x] Inline comments must start with a capital letter
------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 30 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/test10/web/modules/contrib/otp_field/modules/commerce_checkout_otp_login/commerce_checkout_otp_login.module
-------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------
 1 | ERROR | [x] Missing file doc comment
-------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/test10/web/modules/contrib/otp_field/modules/commerce_checkout_otp_login/commerce_checkout_otp_login.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: /var/www/html/test10/web/modules/contrib/otp_field/modules/otp_field_user_auth/src/Form/SettingsForm.php
------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 46 ERRORS AND 12 WARNINGS AFFECTING 44 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------------------
   5 | WARNING | [x] Unused use statement
  17 | ERROR   | [x] Doc comment short description must start with a capital letter
  19 | WARNING | [ ] @author tags are not usually used in Drupal, because over time multiple contributors will touch the code anyway
  39 | ERROR   | [ ] Doc comment is empty
  73 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
  84 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
  85 | WARNING | [ ] Line exceeds 80 characters; contains 110 characters
  87 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
  90 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
  92 | ERROR   | [x] Namespaced classes/interfaces/traits should be referenced with use statements
 121 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 124 | ERROR   | [x] Inline comments must start with a capital letter
 124 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 126 | ERROR   | [x] Inline comments must start with a capital letter
 126 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 127 | ERROR   | [x] Expected 1 space after FUNCTION keyword; 0 found
 130 | ERROR   | [x] Inline comments must start with a capital letter
 130 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 131 | ERROR   | [x] Expected 1 space after FUNCTION keyword; 0 found
 131 | ERROR   | [x] Expected 1 space between type hint and argument "$role"; 0 found
 131 | ERROR   | [x] Expected 0 spaces after reference operator for argument "$role"; 1 found
 171 | WARNING | [ ] Line exceeds 80 characters; contains 93 characters
 171 | WARNING | [x] 'TODO: When replace_default_login is enabled, provide a rescue page for the admin user.' should match the format '@todo Fix problem X here.'
 175 | WARNING | [x] 'TODO: Implement the login block replacement.' should match the format '@todo Fix problem X here.'
 192 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 207 | ERROR   | [x] Concat operator must be surrounded by a single space
 217 | WARNING | [ ] Do not pass empty strings to t()
 223 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 224 | WARNING | [ ] Line exceeds 80 characters; contains 94 characters
 245 | ERROR   | [x] Array indentation error, expected 8 spaces but found 10
 260 | WARNING | [ ] Line exceeds 80 characters; contains 94 characters
 274 | ERROR   | [x] Expected 1 space after cast statement; 0 found
 275 | ERROR   | [x] Expected 1 space after comma in argument list; 16 found
 275 | ERROR   | [x] Expected one space after the comma, 16 found
 277 | ERROR   | [x] Expected 1 space after comma in argument list; 5 found
 277 | ERROR   | [x] Expected one space after the comma, 5 found
 277 | ERROR   | [x] Expected 1 space after cast statement; 0 found
 278 | ERROR   | [x] Expected 1 space after comma in argument list; 11 found
 278 | ERROR   | [x] Expected one space after the comma, 11 found
 280 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 283 | ERROR   | [x] Expected 1 space after cast statement; 0 found
 284 | ERROR   | [x] Expected 1 space after cast statement; 0 found
 285 | ERROR   | [x] Expected 1 space after cast statement; 0 found
 288 | ERROR   | [x] Expected 1 space before "!="; 10 found
 289 | ERROR   | [x] Expected 1 space before "!="; 7 found
 292 | ERROR   | [x] Inline comments must start with a capital letter
 292 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 293 | ERROR   | [x] Expected 1 space after comma in argument list; 10 found
 293 | ERROR   | [x] Expected one space after the comma, 10 found
 294 | ERROR   | [x] Expected 1 space after comma in argument list; 7 found
 294 | ERROR   | [x] Expected one space after the comma, 7 found
 297 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 303 | ERROR   | [x] Inline comments must start with a capital letter
 307 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 312 | WARNING | [ ] Line exceeds 80 characters; contains 90 characters
 312 | ERROR   | [x] Inline comments must start with a capital letter
 323 | ERROR   | [x] Expected 1 blank line after function; 0 found
 324 | ERROR   | [x] The closing brace for the class must have an empty line before it
------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 40 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/test10/web/modules/contrib/otp_field/modules/otp_field_user_auth/src/Form/UserAuthForm.php
-------------------------------------------------------------------------------------------------------------------------------------
FOUND 40 ERRORS AND 10 WARNINGS AFFECTING 46 LINES
-------------------------------------------------------------------------------------------------------------------------------------
  12 | WARNING | [x] Unused use statement
  21 | WARNING | [ ] @author tags are not usually used in Drupal, because over time multiple contributors will touch the code anyway
  64 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
  67 | ERROR   | [x] Inline comments must start with a capital letter
  76 | ERROR   | [x] Inline comments must start with a capital letter
  79 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
  85 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 127 | ERROR   | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
 133 | WARNING | [ ] #options values usually have to run through t() for translation
 134 | WARNING | [ ] #options values usually have to run through t() for translation
 140 | ERROR   | [x] Array indentation error, expected 8 spaces but found 10
 148 | ERROR   | [x] Array closing indentation error, expected 6 spaces but found 8
 150 | ERROR   | [x] Array indentation error, expected 8 spaces but found 10
 158 | ERROR   | [x] Array closing indentation error, expected 6 spaces but found 8
 163 | ERROR   | [x] Equals sign not aligned correctly; expected 1 space but found 3 spaces
 176 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 188 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 203 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 206 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
 218 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 233 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 242 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 244 | ERROR   | [x] Data types in @var tags need to be fully namespaced
 253 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 256 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
 268 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 280 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 289 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 290 | ERROR   | [x] Data types in @var tags need to be fully namespaced
 308 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 322 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 325 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 331 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 345 | ERROR   | [x] Inline comments must start with a capital letter
 349 | WARNING | [ ] Line exceeds 80 characters; contains 96 characters
 349 | ERROR   | [x] Inline comments must start with a capital letter
 353 | ERROR   | [x] Inline comments must start with a capital letter
 359 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 363 | WARNING | [ ] Line exceeds 80 characters; contains 94 characters
 363 | ERROR   | [x] Inline comments must start with a capital letter
 369 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 372 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 378 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 388 | ERROR   | [x] Inline comments must start with a capital letter
 392 | WARNING | [ ] Line exceeds 80 characters; contains 96 characters
 392 | ERROR   | [x] Inline comments must start with a capital letter
 396 | ERROR   | [x] Inline comments must start with a capital letter
 402 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 406 | WARNING | [ ] Line exceeds 80 characters; contains 94 characters
 406 | ERROR   | [x] Inline comments must start with a capital letter
-------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 27 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/test10/web/modules/contrib/otp_field/modules/otp_field_user_auth/src/OtpUserAuthUtilsTrait.php
-------------------------------------------------------------------------------------------------------------------------------------
FOUND 38 ERRORS AND 5 WARNINGS AFFECTING 35 LINES
-------------------------------------------------------------------------------------------------------------------------------------
   9 | ERROR   | [x] Doc comment short description must end with a full stop
  11 | WARNING | [ ] @author tags are not usually used in Drupal, because over time multiple contributors will touch the code anyway
  19 | ERROR   | [x] Parameter comment must be on the next line
  20 | ERROR   | [x] Parameter comment must be on the next line
  22 | ERROR   | [ ] Description for the @return value must be on the next line
  26 | ERROR   | [x] Inline comments must start with a capital letter
  35 | ERROR   | [x] Inline comments must start with a capital letter
  35 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
  40 | ERROR   | [x] Inline comments must start with a capital letter
  44 | ERROR   | [x] Inline comments must start with a capital letter
  44 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
  56 | ERROR   | [x] Inline comments must start with a capital letter
  62 | ERROR   | [x] Inline comments must start with a capital letter
  62 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
  68 | ERROR   | [x] Inline comments must start with a capital letter
  68 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
  75 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
  81 | WARNING | [ ] Line exceeds 80 characters; contains 87 characters
  81 | ERROR   | [x] Line indented incorrectly; expected 6 spaces, found 8
  82 | WARNING | [ ] Line exceeds 80 characters; contains 88 characters
  82 | ERROR   | [x] Line indented incorrectly; expected 6 spaces, found 8
  83 | ERROR   | [x] Line indented incorrectly; expected 6 spaces, found 8
  84 | ERROR   | [x] Line indented incorrectly; expected 6 spaces, found 10
  85 | ERROR   | [x] Line indented incorrectly; expected 6 spaces, found 10
  87 | ERROR   | [x] Line indented incorrectly; expected 7 spaces, found 6
 112 | ERROR   | [x] Inline comments must start with a capital letter
 112 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 117 | ERROR   | [x] Inline comments must start with a capital letter
 122 | WARNING | [ ] Line exceeds 80 characters; contains 92 characters
 123 | WARNING | [ ] Line exceeds 80 characters; contains 89 characters
 127 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 132 | ERROR   | [x] Inline comments must start with a capital letter
 135 | ERROR   | [x] Expected 1 space after WHILE keyword; 0 found
 143 | ERROR   | [ ] Public method name "OtpUserAuthUtilsTrait::checkUserCanLoginUsingOTP" is not in lowerCamel format
 147 | ERROR   | [x] Inline comments must start with a capital letter
 153 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 158 | ERROR   | [x] Inline comments must start with a capital letter
 158 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 162 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 169 | ERROR   | [x] Object operator not indented correctly; expected 10 spaces but found 14
 170 | ERROR   | [x] Inline comments must start with a capital letter
 176 | ERROR   | [x] Inline comments must start with a capital letter
 181 | ERROR   | [x] Doc comment short description must end with a full stop
-------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 33 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/test10/web/modules/contrib/otp_field/modules/otp_field_user_auth/src/Routing/RouteSubscriber.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 8 ERRORS AND 2 WARNINGS AFFECTING 9 LINES
------------------------------------------------------------------------------------------------------------------------------------
 12 | WARNING | [ ] Line exceeds 80 characters; contains 90 characters
 14 | WARNING | [ ] @author tags are not usually used in Drupal, because over time multiple contributors will touch the code anyway
 20 | ERROR   | [x] Doc comment short description must start with a capital letter
 20 | ERROR   | [x] Doc comment short description must end with a full stop
 25 | ERROR   | [x] Doc comment short description must end with a full stop
 35 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 48 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 57 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 65 | ERROR   | [x] Expected 1 blank line after function; 0 found
 66 | ERROR   | [x] The closing brace for the class must have an empty line before it
------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/test10/web/modules/contrib/otp_field/modules/otp_field_user_auth/otp_field_user_auth.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: /var/www/html/test10/web/modules/contrib/otp_field/lib/otp_field_behavior/otp_field_behavior.js
-----------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
-----------------------------------------------------------------------------------------------------
 254 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
 297 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
 310 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
 368 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
 394 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
 407 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
-----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------


FILE: /var/www/html/test10/web/modules/contrib/otp_field/otp_field.module
-----------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 2 LINES
-----------------------------------------------------------------------------------------------------------------------------------
 4 | ERROR   | [x] The second line in the file doc comment must be "@file"
 4 | ERROR   | [x] Doc comment short description must end with a full stop
 6 | WARNING | [ ] @author tags are not usually used in Drupal, because over time multiple contributors will touch the code anyway
-----------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/test10/web/modules/contrib/otp_field/src/Form/SettingsForm.php
-------------------------------------------------------------------------------------------------------------------------------------
FOUND 15 ERRORS AND 1 WARNING AFFECTING 10 LINES
-------------------------------------------------------------------------------------------------------------------------------------
  12 | ERROR   | [x] Doc comment short description must start with a capital letter
  14 | WARNING | [ ] @author tags are not usually used in Drupal, because over time multiple contributors will touch the code anyway
  22 | ERROR   | [x] Doc comment short description must start with a capital letter
  78 | ERROR   | [x] Expected 1 space before "*"; 0 found
  78 | ERROR   | [x] Expected 1 space after "*"; 0 found
  89 | ERROR   | [x] Expected 1 space before "*"; 0 found
  89 | ERROR   | [x] Expected 1 space after "*"; 0 found
 123 | ERROR   | [x] Expected 1 space after comma in argument list; 5 found
 123 | ERROR   | [x] Expected one space after the comma, 5 found
 123 | ERROR   | [x] Expected 1 space after cast statement; 0 found
 124 | ERROR   | [x] Expected 1 space after cast statement; 0 found
 125 | ERROR   | [x] Expected 1 space after comma in argument list; 7 found
 125 | ERROR   | [x] Expected one space after the comma, 7 found
 125 | ERROR   | [x] Expected 1 space after cast statement; 0 found
 130 | ERROR   | [x] Expected 1 blank line after function; 0 found
 131 | ERROR   | [x] The closing brace for the class must have an empty line before it
-------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 15 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/test10/web/modules/contrib/otp_field/src/OtpFieldProcessorInterface.php
-------------------------------------------------------------------------------------------------------------------------------------
FOUND 12 ERRORS AND 9 WARNINGS AFFECTING 18 LINES
-------------------------------------------------------------------------------------------------------------------------------------
  1 | ERROR   | [x] The PHP open tag must be followed by exactly one blank line
  1 | ERROR   | [x] Expected 1 line before declare statement, found 0.
  1 | ERROR   | [x] Expected strict_types=1, found strict_types = 1.
  8 | WARNING | [ ] @author tags are not usually used in Drupal, because over time multiple contributors will touch the code anyway
 27 | ERROR   | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
 34 | WARNING | [ ] Line exceeds 80 characters; contains 101 characters
 35 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
 37 | WARNING | [x] 'TODO: @see OtpFieldProcessorPluginBase::validateIdentity()' should match the format '@todo Fix problem X here.'
 52 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
 55 | ERROR   | [x] Expected "array" but found "array(" for function return type
 56 | ERROR   | [x] Return comment indentation must be 3 spaces, found 4 spaces
 58 | ERROR   | [x] Return comment indentation must be 3 spaces, found 2 spaces
 59 | ERROR   | [x] Return comment indentation must be 3 spaces, found 1 spaces
 60 | ERROR   | [x] Return comment indentation must be 3 spaces, found 1 spaces
 67 | WARNING | [ ] Line exceeds 80 characters; contains 86 characters
 73 | ERROR   | [x] There must be exactly one blank line before the tags in a doc comment
 73 | ERROR   | [ ] The @see reference should not contain any additional text
 74 | ERROR   | [ ] The @see reference should not contain any additional text
 75 | WARNING | [ ] Line exceeds 80 characters; contains 108 characters
 77 | WARNING | [ ] Line exceeds 80 characters; contains 98 characters
 85 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
-------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 10 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/test10/web/modules/contrib/otp_field/src/OtpProvider.php
--------------------------------------------------------------------------------------------------------------------------------------------
FOUND 24 ERRORS AND 7 WARNINGS AFFECTING 26 LINES
--------------------------------------------------------------------------------------------------------------------------------------------
  13 | WARNING | [ ] @author tags are not usually used in Drupal, because over time multiple contributors will touch the code anyway
  19 | ERROR   | [x] Doc comment short description must start with a capital letter
  19 | ERROR   | [x] Doc comment short description must end with a full stop
  26 | ERROR   | [ ] Class property $secret_lifetime should use lowerCamel naming without underscores
  29 | WARNING | [ ] Line exceeds 80 characters; contains 88 characters
  30 | WARNING | [ ] Line exceeds 80 characters; contains 82 characters
  31 | ERROR   | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
  33 | ERROR   | [ ] Class property $secret_min_lifetime should use lowerCamel naming without underscores
  36 | ERROR   | [x] Doc comment short description must start with a capital letter
  51 | ERROR   | [x] Multi-line function declarations must define one parameter per line
  52 | ERROR   | [x] Multi-line function declarations must define one parameter per line
  54 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
  56 | ERROR   | [x] Inline comments must start with a capital letter
  64 | ERROR   | [x] Inline comments must start with a capital letter
  69 | ERROR   | [x] Inline comments must start with a capital letter
  69 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
  72 | ERROR   | [x] Inline comments must start with a capital letter
  72 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
  80 | ERROR   | [x] Inline comments must start with a capital letter
  80 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
  99 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
 119 | ERROR   | [x] Parameter comment must be on the next line
 120 | ERROR   | [x] Parameter comment must be on the next line
 121 | WARNING | [ ] Line exceeds 80 characters; contains 105 characters
 126 | ERROR   | [x] Parameter comment must end with a full stop
 138 | WARNING | [x] 'TODO: Allow customizing the secret generation pattern in the UI.' should match the format '@todo Fix problem X here.'
 148 | ERROR   | [x] Inline comments must start with a capital letter
 148 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 157 | ERROR   | [x] Expected 1 space after WHILE keyword; 0 found
 160 | ERROR   | [x] Expected 1 blank line after function; 0 found
 161 | ERROR   | [x] The closing brace for the class must have an empty line before it
--------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 22 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/test10/web/modules/contrib/otp_field/src/OtpFieldProcessorPluginBase.php
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  1 | ERROR   | [x] The PHP open tag must be followed by exactly one blank line
  1 | ERROR   | [x] Expected 1 line before declare statement, found 0.
  1 | ERROR   | [x] Expected strict_types=1, found strict_types = 1.
 10 | WARNING | [ ] @author tags are not usually used in Drupal, because over time multiple contributors will touch the code anyway
 40 | WARNING | [ ] Line exceeds 80 characters; contains 98 characters
 40 | WARNING | [x] 'TODO: Process pattern from ::identityPattern() here; and force children to call parent logic.' should match the format '@todo Fix problem X here.'
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/test10/web/modules/contrib/otp_field/src/ValidationStatus.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 8 ERRORS AND 1 WARNING AFFECTING 9 LINES
------------------------------------------------------------------------------------------------------------------------------------
  8 | WARNING | [ ] @author tags are not usually used in Drupal, because over time multiple contributors will touch the code anyway
 12 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 17 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 18 | ERROR   | [x] Doc comment short description must start with a capital letter
 22 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 27 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 28 | ERROR   | [x] Doc comment short description must start with a capital letter
 32 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 33 | ERROR   | [x] Doc comment short description must start with a capital letter
------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/test10/web/modules/contrib/otp_field/src/Element/OtpField.php
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 50 ERRORS AND 24 WARNINGS AFFECTING 61 LINES
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
   6 | WARNING | [x] Unused use statement
  10 | WARNING | [x] Unused use statement
  11 | WARNING | [x] Unused use statement
  19 | WARNING | [ ] @author tags are not usually used in Drupal, because over time multiple contributors will touch the code anyway
  42 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
  51 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
  52 | WARNING | [ ] Line exceeds 80 characters; contains 84 characters
  79 | ERROR   | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
  82 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
  85 | ERROR   | [x] Data types in @var tags need to be fully namespaced
  91 | ERROR   | [x] Data types in @var tags need to be fully namespaced
  94 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 100 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 104 | ERROR   | [x] Inline comments must start with a capital letter
 104 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 109 | ERROR   | [x] Inline comments must start with a capital letter
 109 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 110 | ERROR   | [x] Comments may not appear after statements
 111 | WARNING | [ ] Line exceeds 80 characters; contains 85 characters
 111 | ERROR   | [x] Comments may not appear after statements
 115 | ERROR   | [x] Inline comments must start with a capital letter
 115 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 122 | ERROR   | [x] Inline comments must start with a capital letter
 122 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 134 | ERROR   | [x] Each PHP statement must be on a line by itself
 136 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 145 | ERROR   | [x] Inline comments must start with a capital letter
 145 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 149 | ERROR   | [x] Inline comments must start with a capital letter
 154 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 159 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 168 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 174 | ERROR   | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
 176 | WARNING | [ ] Line exceeds 80 characters; contains 129 characters
 176 | ERROR   | [x] Inline comments must start with a capital letter
 176 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 179 | WARNING | [ ] Line exceeds 80 characters; contains 86 characters
 198 | WARNING | [ ] Line exceeds 80 characters; contains 111 characters
 205 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 206 | WARNING | [ ] Line exceeds 80 characters; contains 100 characters
 212 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 214 | WARNING | [ ] Line exceeds 80 characters; contains 89 characters
 238 | ERROR   | [x] Array indentation error, expected 6 spaces but found 21
 239 | WARNING | [ ] Line exceeds 80 characters; contains 111 characters
 240 | WARNING | [x] 'TODO: #needs_validation on otp_secret can show redundant error...' should match the format '@todo Fix problem X here.'
 241 | WARNING | [ ] Line exceeds 80 characters; contains 86 characters
 241 | WARNING | [x] 'TODO: ...Because we validate it again in validateOtpField(). Double check it.' should match the format '@todo Fix problem X here.'
 242 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 251 | ERROR   | [x] Inline comments must start with a capital letter
 251 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 260 | ERROR   | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
 263 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 269 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 270 | WARNING | [ ] Line exceeds 80 characters; contains 95 characters
 278 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 281 | WARNING | [ ] Line exceeds 80 characters; contains 86 characters
 282 | WARNING | [ ] Line exceeds 80 characters; contains 97 characters
 289 | ERROR   | [x] Inline comments must start with a capital letter
 293 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 300 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 303 | ERROR   | [x] Data types in @var tags need to be fully namespaced
 309 | ERROR   | [x] Data types in @var tags need to be fully namespaced
 312 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 317 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 320 | WARNING | [ ] Line exceeds 80 characters; contains 103 characters
 320 | WARNING | [x] 'TODO: If I set ['#needs_validation'] => TRUE on the otp_secret field, drupal will show proper...' should match the format '@todo Fix problem X here.'
 321 | WARNING | [ ] Line exceeds 80 characters; contains 87 characters
 321 | WARNING | [x] 'TODO: ...error on the field. So I may remove this section here. Double check it.' should match the format '@todo Fix problem X here.'
 322 | WARNING | [ ] Line exceeds 80 characters; contains 101 characters
 322 | WARNING | [x] 'TODO: ...Currently I have removed #needs_validation for the otp_secret. But I may change that.' should match the format '@todo Fix problem X here.'
 328 | ERROR   | [x] Inline comments must start with a capital letter
 331 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 336 | ERROR   | [x] Case breaking statements must be followed by a single blank line
 347 | ERROR   | [ ] Doc comment is empty
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 38 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/test10/web/modules/contrib/otp_field/src/OtpFieldProcessorPluginManager.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AND 1 WARNING AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------
  1 | ERROR   | [x] The PHP open tag must be followed by exactly one blank line
  1 | ERROR   | [x] Expected 1 line before declare statement, found 0.
  1 | ERROR   | [x] Expected strict_types=1, found strict_types = 1.
 13 | WARNING | [ ] @author tags are not usually used in Drupal, because over time multiple contributors will touch the code anyway
------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/test10/web/modules/contrib/otp_field/src/Annotation/OtpFieldProcessor.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AND 1 WARNING AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------
  1 | ERROR   | [x] The PHP open tag must be followed by exactly one blank line
  1 | ERROR   | [x] Expected 1 line before declare statement, found 0.
  1 | ERROR   | [x] Expected strict_types=1, found strict_types = 1.
 12 | WARNING | [ ] @author tags are not usually used in Drupal, because over time multiple contributors will touch the code anyway
------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/test10/web/modules/contrib/otp_field/src/Controller/CheckSecretController.php
---------------------------------------------------------------------------------------------------------------------------------------------
FOUND 7 ERRORS AND 2 WARNINGS AFFECTING 9 LINES
---------------------------------------------------------------------------------------------------------------------------------------------
  7 | WARNING | [x] Unused use statement
 15 | ERROR   | [ ] Doc comment is empty
 21 | ERROR   | [x] Doc comment short description must end with a full stop
 40 | ERROR   | [ ] Doc comment is empty
 49 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 53 | ERROR   | [x] Data types in @var tags need to be fully namespaced
 61 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
 68 | ERROR   | [x] Expected 1 blank line after function; 0 found
 69 | ERROR   | [x] The closing brace for the class must have an empty line before it
---------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/test10/web/modules/contrib/otp_field/src/Plugin/OtpFieldProcessor/OtpFieldEmailProcessor.php
----------------------------------------------------------------------------------------------------------------------------------------------
FOUND 14 ERRORS AND 8 WARNINGS AFFECTING 18 LINES
----------------------------------------------------------------------------------------------------------------------------------------------
   1 | ERROR   | [x] The PHP open tag must be followed by exactly one blank line
   1 | ERROR   | [x] Expected 1 line before declare statement, found 0.
   1 | ERROR   | [x] Expected strict_types=1, found strict_types = 1.
  16 | ERROR   | [x] Doc comment short description must end with a full stop
  24 | WARNING | [ ] @author tags are not usually used in Drupal, because over time multiple contributors will touch the code anyway
  31 | WARNING | [x] 'TODO: Make flood settings configurable.' should match the format '@todo Fix problem X here.'
  31 | ERROR   | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
  38 | ERROR   | [x] Doc comment short description must end with a full stop
  87 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
  94 | WARNING | [ ] Line exceeds 80 characters; contains 93 characters
  99 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 105 | WARNING | [ ] Line exceeds 80 characters; contains 93 characters
 110 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 116 | WARNING | [ ] Line exceeds 80 characters; contains 93 characters
 121 | ERROR   | [x] Inline comments must start with a capital letter
 124 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 128 | WARNING | [x] 'TODO: allowed_chars and length should be configurable.' should match the format '@todo Fix problem X here.'
 160 | ERROR   | [ ] Parameter $secret is not described in comment
 164 | ERROR   | [x] There must be exactly one blank line before the tags in a doc comment
 164 | ERROR   | [x] Parameter comment must be on the next line
 167 | WARNING | [x] 'TODO: make email text configurable.' should match the format '@todo Fix problem X here.'
 168 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
----------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 11 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/test10/web/modules/contrib/otp_field/otp_field.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: /var/www/html/test10/web/modules/contrib/otp_field/otp_field.api.php
----------------------------------------------------------------------------------------------------------------------------------------------
FOUND 16 ERRORS AND 25 WARNINGS AFFECTING 35 LINES
----------------------------------------------------------------------------------------------------------------------------------------------
   6 | WARNING | [ ] @author tags are not usually used in Drupal, because over time multiple contributors will touch the code anyway
  16 | ERROR   | [ ] Class name doesn't match filename; expected "class otp_field.api"
  16 | WARNING | [ ] Class name must be prefixed with the project name "OtpField"
  34 | ERROR   | [x] Inline comments must start with a capital letter
  34 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
  36 | ERROR   | [x] Inline comments must start with a capital letter
  43 | WARNING | [ ] Line exceeds 80 characters; contains 114 characters
  46 | WARNING | [ ] Line exceeds 80 characters; contains 92 characters
  50 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
  54 | ERROR   | [x] Inline comments must start with a capital letter
  54 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
  55 | ERROR   | [x] Comments may not appear after statements
  56 | WARNING | [ ] Line exceeds 80 characters; contains 85 characters
  56 | ERROR   | [x] Comments may not appear after statements
  57 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
  60 | ERROR   | [x] Inline comments must start with a capital letter
  60 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
  61 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
  62 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
  63 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
  64 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
  65 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
  67 | ERROR   | [x] Inline comments must start with a capital letter
  67 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
  68 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
  69 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
  70 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
  71 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
  72 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
  73 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
  74 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
  75 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
  84 | WARNING | [x] A comma should follow the last multiline array item. Found: 'Only "ok" is allowed'
 103 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 110 | ERROR   | [x] Inline comments must start with a capital letter
 115 | WARNING | [ ] Unused variable $otp_id.
 116 | WARNING | [ ] Unused variable $otp_secret.
 123 | WARNING | [ ] Unused variable $otp_example.
 124 | WARNING | [ ] There must be no blank line following an inline comment
 126 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
 133 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
----------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 14 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------

Time: 496ms; Memory: 14MB
📌 Task
Status

RTBC

Version

1.0

Component

Code

Created by

🇮🇳India chandansha

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

Merge Requests

Comments & Activities

  • Issue created by @chandansha
  • Assigned to amanbtr72
  • Status changed to Needs work 4 months ago
  • 🇮🇳India bhaveshdas

    I applied MR!4 and I still encountered some issues after I ran vendor/bin/phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,js,info,txt,md,yml,twig modules/custom/otp_field-3460423/

    FILE: /var/www/html/drupal-contri-d10/modules/custom/otp_field-3460423/src/Form/SettingsForm.php
    -------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -------------------------------------------------------------------------------------------------------
     31 | ERROR | [x] Multi-line function declarations must have a trailing comma after the last parameter
    -------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -------------------------------------------------------------------------------------------------------
    
    
    FILE: /var/www/html/drupal-contri-d10/modules/custom/otp_field-3460423/src/OtpProvider.php
    -------------------------------------------------------------------------------------------------------------------------
    FOUND 6 ERRORS AFFECTING 4 LINES
    -------------------------------------------------------------------------------------------------------------------------
     64 | ERROR | [x] The first parameter of a multi-line function declaration must be on the line after the opening bracket
     65 | ERROR | [x] Multi-line function declaration not indented correctly; expected 4 spaces but found 2
     66 | ERROR | [x] Multi-line function declaration not indented correctly; expected 4 spaces but found 2
     67 | ERROR | [x] Multi-line function declaration not indented correctly; expected 4 spaces but found 2
     67 | ERROR | [x] Multi-line function declarations must have a trailing comma after the last parameter
     67 | ERROR | [x] The closing parenthesis of a multi-line function declaration must be on a new line
    -------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -------------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /var/www/html/drupal-contri-d10/modules/custom/otp_field-3460423/modules/otp_field_user_auth/src/Form/SettingsForm.php
    ----------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ----------------------------------------------------------------------------------------------------------------------------
     44 | ERROR | [x] Multi-line function declarations must have a trailing comma after the last parameter
    ----------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ----------------------------------------------------------------------------------------------------------------------------
    
    Time: 2.11 secs; Memory: 16MB
    
  • Assigned to hetal.solanki
  • Issue was unassigned.
  • Status changed to RTBC 4 months ago
  • 🇮🇳India hetal.solanki

    I have fixed the remaining PHPCs issue.

    This is my commit number: 930c27f46f46c1ff51819fdf3993dc895c463830

    I am now moving this to Reviewed & tested by the community.

Production build 0.71.5 2024