Problem/Motivation
--------------------------------------------------------
FOUND 15 ERRORS AFFECTING 12 LINES
---------------------------------------------------------------------------------------------------------------------------------------
65 | ERROR | [ ] Parameter $configuration is not described in comment
65 | ERROR | [ ] Parameter $plugin_id is not described in comment
65 | ERROR | [ ] Parameter $plugin_definition is not described in comment
67 | ERROR | [x] There must be exactly one blank line before the tags in a doc comment
252 | ERROR | [x] Missing function doc comment
258 | ERROR | [x] Expected 1 space after IF keyword; 0 found
356 | ERROR | [ ] Missing parameter comment
356 | ERROR | [ ] Missing parameter type
357 | ERROR | [x] Separate the @param and @return sections by a blank line.
359 | ERROR | [x] Separate the @return and @throws sections by a blank line.
372 | ERROR | [x] Expected 1 space after IF keyword; 0 found
374 | ERROR | [x] Expected 1 space after IF keyword; 0 found
376 | ERROR | [x] Expected 1 space after IF keyword; 0 found
426 | ERROR | [x] Expected 1 blank line after function; 0 found
427 | ERROR | [x] The closing brace for the class must have an empty line before it
---------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 10 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | After Patch.png | 9.33 KB | gabriel.abdalla |
| #8 | Before Patch.PNG | 32.65 KB | gabriel.abdalla |
| #6 | 3230053-6.patch | 2.8 KB | takuma shimabukuro |
Issue fork layout_builder_kit-3230053
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3230053-correct-coding-standards
changes, plain diff MR !4
Comments
Comment #3
marcusvsouza commentedComment #4
sourabhjainMR looks fine. Please review.
Comment #5
takuma shimabukuro commentedComment #6
takuma shimabukuro commentedSteps performed:
1. Installed Layout Builder Kit with version 8.x-1.x
2. ran phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml LBKBaseComponent.php inside layout_builder_kit/src/Plugin/Block
3 fix all errors and warnings
Comment #7
takuma shimabukuro commentedComment #8
gabriel.abdalla commentedHi, patch reviewed.
Steps performed:
(1) Got code from dev version.
(2) Run PHPCS with standard Drupal src/Plugin/Block/LBKBaseComponent.php
(3) PHPCS issues returned (image attached).
(4) Applied 3230053-6.patch.
(5) Run PHPCS again.
(6) PHPCS issues fixed (image attached).
Comment #9
alancunha commentedRevised the MR using the phpcs against the file LBKBaseComponent.php and no errors were found.
Comment #11
aangel commented