- Issue created by @arti_parmar
- Status changed to Needs review
almost 2 years ago 11:43am 30 May 2023
Fixes issues Description for the @return value is missing
Run the command:
phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml web/modules/contrib/layout_builder_paragraphs/
Fix the following coding standards issues and upload the patch or create an MR with fixes.
FILE: C:\xampp\htdocs\drupal_9\web\modules\contrib\layout_builder_paragraphs\layout_builder_paragraphs.api.php
--------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
--------------------------------------------------------------------------------------------------------------
14 | ERROR | [ ] Description for the @return value is missing
19 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
37 | ERROR | [ ] Description for the @return value is missing
--------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\drupal_9\web\modules\contrib\layout_builder_paragraphs\layout_builder_paragraphs.module
--------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------------
200 | ERROR | The array declaration extends to column 96 (the limit is 80). The array content should be split up over multiple lines
--------------------------------------------------------------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\drupal_9\web\modules\contrib\layout_builder_paragraphs\src\Controller\SuiteChooseBlockController.php
--------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------
64 | WARNING | Line exceeds 80 characters; contains 93 characters
--------------------------------------------------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\drupal_9\web\modules\contrib\layout_builder_paragraphs\src\Form\AddParagraphForm.php
------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------
19 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
181 | WARNING | Line exceeds 80 characters; contains 81 characters
------------------------------------------------------------------------------------------------------------------
Needs review
1.0
Code