FILE: D:\xampp\htdocs\drupal9.5\web\modules\contrib\content_hub_tree\content_hub_tree.install
---------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 1 LINE
---------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
---------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------
FILE: D:\xampp\htdocs\drupal9.5\web\modules\contrib\content_hub_tree\content_hub_tree.module
--------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
--------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------
FILE: D:\xampp\htdocs\drupal9.5\web\modules\contrib\content_hub_tree\css\content-tree.css
-----------------------------------------------------------------------------------------
FOUND 16 ERRORS AFFECTING 16 LINES
-----------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
2 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
6 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
10 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
14 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
15 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
16 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
17 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
21 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
22 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
23 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
24 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
25 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
26 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
27 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
31 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
-----------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 16 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------
FILE: D:\xampp\htdocs\drupal9.5\web\modules\contrib\content_hub_tree\README.md
------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------
6 | WARNING | Line exceeds 80 characters; contains 98 characters
12 | WARNING | Line exceeds 80 characters; contains 81 characters
------------------------------------------------------------------------------
FILE: D:\xampp\htdocs\drupal9.5\web\modules\contrib\content_hub_tree\src\Form\MenuContentTreeForm.php
-----------------------------------------------------------------------------------------------------
FOUND 10 ERRORS AND 2 WARNINGS AFFECTING 12 LINES
-----------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
104 | ERROR | [ ] Missing parameter comment
105 | ERROR | [ ] Missing parameter comment
156 | ERROR | [ ] Missing parameter comment
157 | ERROR | [ ] Missing parameter comment
159 | ERROR | [ ] Description for the @return value is missing
248 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
305 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
313 | WARNING | [ ] Line exceeds 80 characters; contains 85 characters
359 | WARNING | [x] A comma should follow the last multiline array item. Found: )
393 | ERROR | [ ] Type hint "array" missing for $tree
408 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
-----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------
FILE: D:\xampp\htdocs\drupal9.5\web\modules\contrib\content_hub_tree\src\HelperService.php
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 9 ERRORS AND 1 WARNING AFFECTING 10 LINES
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
11 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
31 | ERROR | [x] Expected "\Drupal\views\ViewExecutable|null|false" but found "\Drupal\views\ViewExecutable|NULL|FALSE" for @var tag in member variable comment
52 | ERROR | [ ] Missing parameter comment
104 | ERROR | [ ] Missing parameter comment
105 | ERROR | [ ] Missing parameter comment
106 | ERROR | [ ] Missing parameter comment
108 | ERROR | [ ] Description for the @return value is missing
123 | ERROR | [ ] Description for the @return value is missing
139 | ERROR | [ ] Description for the @return value is missing
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: D:\xampp\htdocs\drupal9.5\web\modules\contrib\content_hub_tree\src\Plugin\Derivative\ContentTreeLocalTask.php
-------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
-------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | interdiff_5-8.txt | 334 bytes | mrinalini9 |
| #8 | phpcs-drupal-coding-standard-new-3294887-8.patch | 7.87 KB | mrinalini9 |
| #5 | phpcs-drupal-coding-standard-new-3294887-5.patch | 7.47 KB | Harsh panchal |
| #2 | phpcs-drupal-standard-coding-3294887-2.patch | 7.24 KB | Harsh panchal |
Comments
Comment #2
Harsh panchal commentedI have fixed this issue and providing a patch.
Comment #3
arunkumarkThe given patch resolve most of the PHPCS issue. Still there are minor issues need to be address.
Also getting below warning message:
Comment #4
Harsh panchal commented@arunkumark
I have check this issue and providing a new patch.as soon as possible. Thanks
Comment #5
Harsh panchal commentedApplying a new patch #5.
Comment #6
jatingupta40 commentedI will review this patch.
Comment #7
jatingupta40 commentedThe given patch is working fine.
Just showing me one warning regarding routing file permission.
FILE: /var/www/html/drupalopensource/web/modules/contrib/content_hub_tree/content_hub_tree.routing.yml
--------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------
7 | WARNING | The administration page callback should probably use "administer site configuration" - which implies the user
| | can change something - rather than "access administration pages" which is about viewing but not changing
| | configurations.
--------------------------------------------------------------------------------------------------------------------------------
Comment #8
mrinalini9 commentedUpdated patch #5 by addressing #7, please review it.
Comment #9
meeni_dhobale commented@mrinalini9 your patch is working fine but it showing me a single warning as
FILE: ...odules/contrib/content_hub_tree/src/Form/MenuContentTreeForm.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
212 | WARNING | \Drupal calls should be avoided in classes, use
| dependency injection instead
----------------------------------------------------------------------
If you try to use dependency injection you can solve this warning as well.
Comment #10
meeni_dhobale commentedComment #11
jatingupta40 commented@Meeni_Dhobale the warning you are facing, for that the different issue has already been created and is in work there.
You can see this. https://www.drupal.org/project/content_hub_tree/issues/3294909
Thanks
Comment #12
meeni_dhobale commented@JatinGupta40 Thank you inform.
Comment #13
arunkumarkAs per the comment #11 keeping the status Needs review.
Comment #14
sharayurajput commentedI will review this
Comment #15
sharayurajput commentedI reviewed this patch applied successfully & cleanly. The patch looks good and working properly.
Comment #16
sharayurajput commentedComment #17
sharayurajput commentedWill review this patch
Comment #18
sharayurajput commentedreviewed this patch applied successfully & cleanly. The patch looks good and working properly.
Comment #20
oleh.tarasiuk commentedComment #21
oleh.tarasiuk commented