Fix coding standards

Created on 14 May 2024, 8 months ago
Updated 4 June 2024, 7 months ago

Problem/Motivation

FILE: ...ect/token_url_plus/web/modules/custom/token_url_plus/token_url_plus.module
--------------------------------------------------------------------------------
FOUND 12 ERRORS AND 6 WARNINGS AFFECTING 10 LINES
--------------------------------------------------------------------------------
  1 | ERROR   | [x] Missing file doc comment
    |         |     (Drupal.Commenting.FileComment.Missing)
 37 | ERROR   | [x] Expected 1 blank line after function; 0 found
    |         |     (Squiz.WhiteSpace.FunctionSpacing.After)
 41 | WARNING | [ ] Hook implementations should not duplicate @param
    |         |     documentation (Drupal.Commenting.HookComment.HookParamDoc)
 41 | ERROR   | [ ] Missing parameter comment
    |         |     (Drupal.Commenting.FunctionComment.MissingParamComment)
 42 | WARNING | [ ] Hook implementations should not duplicate @param
    |         |     documentation (Drupal.Commenting.HookComment.HookParamDoc)
 42 | ERROR   | [ ] Missing parameter comment
    |         |     (Drupal.Commenting.FunctionComment.MissingParamComment)
 43 | WARNING | [ ] Hook implementations should not duplicate @param
    |         |     documentation (Drupal.Commenting.HookComment.HookParamDoc)
 43 | ERROR   | [ ] Missing parameter comment
    |         |     (Drupal.Commenting.FunctionComment.MissingParamComment)
 44 | WARNING | [ ] Hook implementations should not duplicate @param
    |         |     documentation (Drupal.Commenting.HookComment.HookParamDoc)
 44 | ERROR   | [ ] Missing parameter comment
    |         |     (Drupal.Commenting.FunctionComment.MissingParamComment)
 45 | WARNING | [ ] Hook implementations should not duplicate @param
    |         |     documentation (Drupal.Commenting.HookComment.HookParamDoc)
 45 | ERROR   | [ ] Missing parameter comment
    |         |     (Drupal.Commenting.FunctionComment.MissingParamComment)
 45 | ERROR   | [x] Data types in @param tags need to be fully namespaced
    |         |     (Drupal.Commenting.DataTypeNamespace.DataTypeNamespace)
 47 | WARNING | [ ] Hook implementations should not duplicate @return
    |         |     documentation (Drupal.Commenting.HookComment.HookReturnDoc)
 47 | ERROR   | [ ] Function return type is void, but function contains return
    |         |     statement
    |         |     (Drupal.Commenting.FunctionComment.InvalidReturnVoid)
 47 | ERROR   | [ ] Description for the @return value is missing
    |         |     (Drupal.Commenting.FunctionComment.MissingReturnComment)
 65 | ERROR   | [x] Expected newline after closing brace
    |         |     (Drupal.ControlStructures.ControlSignature.NewlineAfterCloseBrace)
 70 | ERROR   | [x] Expected newline after closing brace
    |         |     (Drupal.ControlStructures.ControlSignature.NewlineAfterCloseBrace)
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇺🇸United States generalredneck

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024