Fix Drupal coding standard

Created on 5 June 2020, about 4 years ago
Updated 16 August 2023, 11 months ago
FILE:/modules/contrib/onpoint_search/src/Controller/OnPointController.php
----------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------------------------
  3 | ERROR   | [x] Namespaced classes, interfaces and traits should not begin with a file doc comment
 45 | WARNING | [ ] Empty return statement not required here
----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------


FILE:/modules/contrib/onpoint_search/src/Form/OnPointSettingsForm.php
-------------------------------------------------------------------------------------------------------------------------------
FOUND 10 ERRORS AND 2 WARNINGS AFFECTING 10 LINES
-------------------------------------------------------------------------------------------------------------------------------
   1 | ERROR   | [x] The PHP open tag must be followed by exactly one blank line
   2 | ERROR   | [x] Namespaced classes, interfaces and traits should not begin with a file doc comment
  16 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 4
  16 | ERROR   | [x] The open comment tag must be the only content on the line
  16 | ERROR   | [ ] Missing short description in doc comment
  35 | ERROR   | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
  72 | WARNING | [ ] Avoid backslash escaping in translatable strings when possible, use "" quotes instead
  80 | WARNING | [ ] Avoid backslash escaping in translatable strings when possible, use "" quotes instead
  91 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
  93 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 100 | ERROR   | [x] Expected 1 blank line after function; 0 found
 101 | ERROR   | [x] The closing brace for the class must have an empty line before it
-------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 9 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------


FILE: /web/modules/contrib/onpoint_search/src/Routing/OnPointRoutes.php
---------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------------------
  3 | ERROR   | [x] Namespaced classes, interfaces and traits should not begin with a file doc comment
 39 | WARNING | [x] A comma should follow the last multiline array item. Found: $onpoint_title
---------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------

Time: 133ms; Memory: 8MB
📌 Task
Status

Closed: outdated

Version

1.0

Component

Code

Created by

🇮🇳India ashutosh.mishra

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.

Production build 0.69.0 2024