Fix the issues reported by phpcs

Created on 27 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/layout_builder_context/

FILE: /var/www/html/vbd7/web/modules/contrib/layout_builder_context/src/EventSubscriber/BlockComponentRenderArraySubscriber.php
-------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------
84 | WARNING | Line exceeds 80 characters; contains 95 characters
-------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/vbd7/web/modules/contrib/layout_builder_context/layout_builder_context.module
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
19 | ERROR | [ ] The array declaration extends to column 132 (the limit is 80). The array content should be split up over multiple lines
36 | ERROR | [ ] The array declaration extends to column 134 (the limit is 80). The array content should be split up over multiple lines
71 | ERROR | [ ] The array declaration extends to column 126 (the limit is 80). The array content should be split up over multiple lines
154 | ERROR | [x] There must be exactly one blank line before the tags in a doc comment
210 | ERROR | [ ] All functions defined in a module file must be prefixed with the module's name, found "_context_option_list" but expected "layout_builder_context__context_option_list"
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Time: 398ms; Memory: 12MB

📌 Task
Status

Fixed

Version

1.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