Drupal coding standards

Created on 5 May 2020, over 4 years ago
Updated 22 July 2024, 4 months ago
🐛 Bug report
Status

Needs work

Version

3.0

Component

Code

Created by

🇮🇳India suresh prabhu parkala Bangalore

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇮🇳India riddhi.addweb

    I have applied the "3133682-2" patch cleanly but still, there are some errors.
    Please check the screenshot for the same.

    FILE: /var/www/html/web/drupal_8.9/web/modules/contrib/phpmailer/tests/src/Unit/PHPMailerUnitTest.php
    -----------------------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
    -----------------------------------------------------------------------------------------------------------------------------------------
     74 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     85 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
    -----------------------------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /var/www/html/web/drupal_8.9/web/modules/contrib/phpmailer/src/Controller/PHPMailerMailPreviewController.php
    ------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
    ------------------------------------------------------------------------------------------------------------------
     48 | WARNING | Unused variable $recipient.
     56 | WARNING | Unused variable $subject.
     58 | WARNING | Unused variable $sender.
     59 | WARNING | Unused variable $headers.
    ------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /var/www/html/web/drupal_8.9/web/modules/contrib/phpmailer/src/Plugin/Mail/DrupalPHPMailer.php
    ----------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 10 ERRORS AND 15 WARNINGS AFFECTING 25 LINES
    ----------------------------------------------------------------------------------------------------------------------------------------------
       7 | ERROR   | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
      28 | ERROR   | [ ] Class property $ReturnPath should use lowerCamel naming without underscores
      50 | WARNING | [ ] Line exceeds 80 characters; contains 84 characters
      54 | ERROR   | [ ] Class property $SMTPDebug should use lowerCamel naming without underscores
      86 | ERROR   | [x] Use null coalesce operator instead of ternary operator.
      88 | ERROR   | [x] Use null coalesce operator instead of ternary operator.
      90 | ERROR   | [x] Use null coalesce operator instead of ternary operator.
     113 | ERROR   | [ ] Public method name "DrupalPHPMailer::SmtpSend" is not in lowerCamel format
     154 | ERROR   | [ ] Public method name "DrupalPHPMailer::Reset" is not in lowerCamel format
     201 | ERROR   | [ ] Public method name "DrupalPHPMailer::SetLanguage" is not in lowerCamel format
     207 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     208 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     209 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     210 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     211 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     214 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     215 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     216 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     218 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     219 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     222 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     223 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     224 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     225 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     233 | ERROR   | [ ] Public method name "DrupalPHPMailer::RFCDate" is not in lowerCamel format
    ----------------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ----------------------------------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /var/www/html/web/drupal_8.9/web/modules/contrib/phpmailer/src/Form/SettingsForm.php
    ----------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 4 ERRORS AND 63 WARNINGS AFFECTING 63 LINES
    ----------------------------------------------------------------------------------------------------------------------------------------------
      77 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
      79 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
      86 | WARNING | [ ] Line exceeds 80 characters; contains 101 characters
      87 | ERROR   | [ ] Comment indentation error, expected only 1 spaces
      89 | WARNING | [ ] Line exceeds 80 characters; contains 273 characters
      93 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
      98 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     100 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     105 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     107 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     111 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     115 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     120 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     122 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     122 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     122 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     123 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     128 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     134 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     135 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     141 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     143 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     148 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     153 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     155 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     162 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     162 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     163 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     169 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     173 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     175 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     179 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     181 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     185 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     187 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     191 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     194 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     195 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     196 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     197 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     199 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     203 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     205 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     215 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     216 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     221 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     222 | ERROR   | [x] Use null coalesce operator instead of ternary operator.
     223 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     228 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     229 | ERROR   | [x] Use null coalesce operator instead of ternary operator.
     230 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     235 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     236 | ERROR   | [x] Use null coalesce operator instead of ternary operator.
     237 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     247 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     251 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     253 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     290 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     291 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
     307 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     308 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
     351 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
     356 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
     359 | WARNING | [ ] Unused variable $ret_val.
     362 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
     362 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     363 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
    ----------------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ----------------------------------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /var/www/html/web/drupal_8.9/web/modules/contrib/phpmailer/phpmailer.install
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 53 ERRORS AND 14 WARNINGS AFFECTING 34 LINES
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
       9 | 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."
      48 | 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."
      51 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 4
      51 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
      54 | WARNING | [ ] Line exceeds 80 characters; contains 149 characters
      54 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
      54 | ERROR   | [x] 2 spaces found before inline comment; expected "// if (!phpmailer_active() && !(\Drupal::moduleHandler()->moduleExists('mimemail') && variable_get('mimemail_engine', 'mimemail') ==
         |         |     'phpmailer')) {" but found "//  if (!phpmailer_active() && !(\Drupal::moduleHandler()->moduleExists('mimemail') && variable_get('mimemail_engine', 'mimemail') == 'phpmailer')) {"
      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
      59 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
      59 | ERROR   | [x] 2 spaces found before inline comment; expected "// if (\Drupal::moduleHandler()->moduleExists('mailsystem')) {" but found "//  if
         |         |     (\Drupal::moduleHandler()->moduleExists('mailsystem')) {"
      59 | ERROR   | [x] Inline comments must start with a capital letter
      60 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
      60 | ERROR   | [ ] Comment indentation error, expected only 2 spaces
      61 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
      61 | ERROR   | [ ] Comment indentation error, expected only 4 spaces
      62 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
      63 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
      64 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
      64 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
      68 | 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."
      71 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
      74 | WARNING | [ ] Line exceeds 80 characters; contains 90 characters
      74 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
      74 | ERROR   | [x] 2 spaces found before inline comment; expected "// $mail_system = variable_get('mail_system', ['default-system' => 'DefaultMailSystem']);" but found "//  $mail_system =
         |         |     variable_get('mail_system', ['default-system' => 'DefaultMailSystem']);"
      75 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
      76 | WARNING | [x] There must be no blank line following an inline comment
      76 | WARNING | [ ] There must be no blank line following an inline comment
      76 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
      80 | WARNING | [ ] Line exceeds 80 characters; contains 92 characters
      80 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 0
      80 | ERROR   | [ ] Comment indentation error, expected only 1 spaces
      81 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 0
      82 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 0
      82 | ERROR   | [ ] Comment indentation error, expected only 4 spaces
      83 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 0
      83 | ERROR   | [ ] Comment indentation error, expected only 6 spaces
      84 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 0
      84 | ERROR   | [ ] Comment indentation error, expected only 8 spaces
      85 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 0
      86 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 0
      87 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 0
      87 | ERROR   | [ ] Comment indentation error, expected only 8 spaces
      88 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 0
      89 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 0
      90 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 0
      91 | WARNING | [x] There must be no blank line following an inline comment
      91 | WARNING | [ ] There must be no blank line following an inline comment
      91 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 0
      91 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
      99 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
     102 | WARNING | [ ] Line exceeds 80 characters; contains 123 characters
     102 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
     102 | ERROR   | [x] 2 spaces found before inline comment; expected "// if (\Drupal::moduleHandler()->moduleExists('mimemail') && variable_get('mimemail_engine', 'mimemail') == 'phpmailer') {" but found
         |         |     "//  if (\Drupal::moduleHandler()->moduleExists('mimemail') && variable_get('mimemail_engine', 'mimemail') == 'phpmailer') {"
     102 | ERROR   | [x] Inline comments must start with a capital letter
     103 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 4
     104 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
     104 | ERROR   | [ ] Comment indentation error, expected only 1 spaces
     105 | WARNING | [ ] Line exceeds 80 characters; contains 92 characters
     105 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
     106 | WARNING | [x] There must be no blank line following an inline comment
     106 | WARNING | [ ] There must be no blank line following an inline comment
     106 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
     106 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
     110 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 0
     110 | ERROR   | [ ] Comment indentation error, expected only 1 spaces
     110 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 44 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /var/www/html/web/drupal_8.9/web/modules/contrib/phpmailer/phpmailer.module
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 5 ERRORS AND 3 WARNINGS AFFECTING 8 LINES
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
       9 | ERROR   | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Component\Utility\Unicode.
      12 | 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."
      15 | ERROR   | [x] Whitespace found at end of line
      29 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
      42 | 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."
      75 | 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."
      98 | ERROR   | [ ] Missing parameter type
     102 | ERROR   | [ ] Return type missing for @return tag in function comment
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /var/www/html/web/drupal_8.9/web/modules/contrib/phpmailer/includes/phpmailer.mimemail.inc
    ------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------------
     81 | WARNING | Line exceeds 80 characters; contains 109 characters
    ------------------------------------------------------------------------------------------------
    
  • Assigned to dhruv.mittal
  • dhruv.mittal changed the visibility of the branch 3133682-drupal-coding-standards to hidden.

  • I have resolved almost all the phpcs error

Production build 0.71.5 2024