Fix the issues reported by phpcs

Created on 26 October 2022, over 1 year ago
Updated 18 January 2023, over 1 year ago

Problem/Motivation

FILE: /var/www/html/drupal_cms/drupal9/web/modules/contrib/token_filter/js/plugins/tokenbrowser/plugin.js
---------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
---------------------------------------------------------------------------------------------------------
 18 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
 28 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
 29 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
 30 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
---------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------


FILE: /var/www/html/drupal_cms/drupal9/web/modules/contrib/token_filter/src/Plugin/CKEditorPlugin/TokenBrowser.php
----------------------------------------------------------------------------------------------------------------------------------------------
FOUND 14 ERRORS AND 1 WARNING AFFECTING 11 LINES
----------------------------------------------------------------------------------------------------------------------------------------------
  37 | ERROR   | [ ] Missing member variable doc comment
  39 | ERROR   | [ ] Parameter $configuration is not described in comment
  39 | ERROR   | [ ] Parameter $plugin_id is not described in comment
  39 | ERROR   | [ ] Parameter $plugin_definition is not described in comment
  39 | ERROR   | [ ] Parameter $token_service is not described in comment
  42 | ERROR   | [ ] Missing parameter comment
  56 | ERROR   | [x] Missing function doc comment
  77 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
  90 | ERROR   | [x] Trailing punctuation for @see references is not allowed.
 108 | ERROR   | [ ] The @see reference should not contain any additional text
 184 | ERROR   | [x] Line indented incorrectly; expected at least 8 spaces, found 6
 185 | ERROR   | [x] Line indented incorrectly; expected 6 spaces, found 4
 185 | ERROR   | [x] Closing brace indented incorrectly; expected 6 spaces, found 4
 201 | ERROR   | [x] Expected 1 blank line after function; 0 found
 202 | ERROR   | [x] The closing brace for the class must have an empty line before it
----------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/drupal_cms/drupal9/web/modules/contrib/token_filter/src/Plugin/Filter/TokenFilter.php
---------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------
 130 | ERROR | The array declaration extends to column 100 (the limit is 80). The array content should be split up over multiple lines
---------------------------------------------------------------------------------------------------------------------------------------

Time: 118ms; Memory: 12MB
📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India Rohit Rana

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

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

Sign in to follow issues

Comments & Activities

Not all content is available!

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

  • Assigned to Rohit Rana
  • Issue was unassigned.
  • Status changed to Needs review over 1 year ago
  • Status changed to Needs work over 1 year ago
  • Status changed to Needs review over 1 year ago
  • Status changed to RTBC over 1 year ago
  • Status changed to Needs work over 1 year ago
  • Status changed to Needs review over 1 year ago
  • Status changed to Fixed over 1 year ago
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.69.0 2024