FILE: /home/sahana/Sites/contribution/web/modules/contrib/group_taxonomy/group_taxonomy.services.yml
----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
9 | ERROR | [x] Expected 1 newline at end of file; 2 found
----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------
FILE: /home/sahana/Sites/contribution/web/modules/contrib/group_taxonomy/group_taxonomy.module
--------------------------------------------------------------------------------------------------------------------
FOUND 12 ERRORS AFFECTING 11 LINES
--------------------------------------------------------------------------------------------------------------------
3 | ERROR | [ ] Missing short description in doc comment
19 | ERROR | [ ] Missing parameter comment
29 | ERROR | [ ] Missing parameter comment
39 | ERROR | [x] Use "elseif" in place of "else if"
53 | ERROR | [x] Data types in @param tags need to be fully namespaced
54 | ERROR | [x] Parameter comment indentation must be 3 spaces, found 2 spaces
56 | ERROR | [x] Parameter comment indentation must be 3 spaces, found 2 spaces
57 | ERROR | [ ] Missing parameter type
58 | ERROR | [x] Parameter comment indentation must be 3 spaces, found 2 spaces
64 | ERROR | [ ] Expected type hint "AccountInterface"; found "\Drupal\Core\Session\AccountInterface" for $account
64 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
74 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------
FILE: /home/sahana/Sites/contribution/web/modules/contrib/group_taxonomy/group_taxonomy.links.task.yml
------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Expected 1 newline at end of file; 0 found
------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------
Time: 131ms; Memory: 10MB
Comments
Comment #2
sahana _n commentedPlease review the patch.
Comment #3
roman-yrv commentedI tested the code of the module with PHP Code Sniffer before patching (see a screenshot)
And after patching (see a screenshot)
Comment #4
sahana _n commentedPlease review the patch I updated the patch.
Comment #5
roman-yrv commentedI tested the new patch.
The same problem.
But if you remove the block from the code
the code sniffer test will be pass without any problem.
Comment #6
sahana _n commentedPlease review the patch once again.
Comment #7
roman-yrv commentedYes, it passes now successfully without any messages.
Comment #9
carolpettirossi commentedThanks for reporting and fixing the coding standard issues. Patch has been applied and committed.
Comment #10
carolpettirossi commented