Coding standards

Created on 19 April 2023, over 1 year ago

vendor/bin/phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig web/modules/contrib/rest_log/

FILE: ...lvb/web/modules/contrib/rest_log/src/EventSubscriber/RestLogSubscriber.php
--------------------------------------------------------------------------------
FOUND 13 ERRORS AFFECTING 10 LINES
--------------------------------------------------------------------------------
11 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be
| | referenced with use statements
57 | ERROR | [ ] Missing parameter comment
58 | ERROR | [x] Separate the @param and @return sections by a blank line.
58 | ERROR | [ ] Description for the @return value is missing
64 | ERROR | [x] Expected newline after closing brace
76 | ERROR | [ ] If there is no return value for a function, there must not
| | be a @return tag.
76 | ERROR | [ ] Description for the @return value is missing
100 | ERROR | [x] list(...) is forbidden, use [...] instead.
101 | ERROR | [x] Concat operator must be surrounded by a single space
102 | ERROR | [x] Expected newline after closing brace
135 | ERROR | [x] Whitespace found at end of line
167 | ERROR | [ ] If there is no return value for a function, there must not
| | be a @return tag.
167 | ERROR | [ ] Description for the @return value is missing
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

Time: 612ms; Memory: 12MB

📌 Task
Status

Fixed

Version

2.0

Component

Code

Created by

🇮🇳India dineshkumarbollu

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

Production build 0.71.5 2024