Problem/Motivation
Resolve the PHP Coding standard issue.
FILE: /var/www/html/web/modules/custom/menus_attribute/menus_attribute.module
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 5 WARNINGS AFFECTING 5 LINES
--------------------------------------------------------------------------------
75 | WARNING | #options values usually have to run through t() for translation
76 | WARNING | #options values usually have to run through t() for translation
77 | WARNING | #options values usually have to run through t() for translation
78 | WARNING | #options values usually have to run through t() for translation
79 | WARNING | #options values usually have to run through t() for translation
--------------------------------------------------------------------------------
FILE: /var/www/html/web/modules/custom/menus_attribute/menus_attribute.info.yml
-------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------
1 | WARNING | Remove "project" from the info file, it will be added by drupal.org packaging automatically
1 | WARNING | Remove "datestamp" from the info file, it will be added by drupal.org packaging automatically
1 | WARNING | Remove "version" from the info file, it will be added by drupal.org packaging automatically
-------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/web/modules/custom/menus_attribute/src/StorageHelper.php
----------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------
12 | ERROR | Missing member variable doc comment
----------------------------------------------------------------------------Steps to reproduce
Run the Code sniffer
Run the phpcs --standard="DrupalPractice,DrupalStandard" menus_attribute
Proposed resolution
Resolve the PHPCS issues.
Remaining tasks
Testing
User interface changes
API changes
Data model changes
Issue fork menus_attribute-3346900
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:
- 3346900-fix-the-issues
changes, plain diff MR !7
- phpcs-3346900
changes, plain diff MR !8
Comments
Comment #3
kunalgautam commentedPHPCS issues are resolved in MR of #2.
Comment #4
adil_siddiqui commentedMR reviewed and it is working fine...Marking as RTBC.
Comment #5
avpadernoSince those lines are changed, a space is missing before the opening parenthesis. ie.same is not the correct spelling, and i.e. would not even be necessary. (Instead, an article is necessary.)
That is not the comment used for properties. The namespace includes the
\at the beginning.Comment #7
kunalgautam commentedComment #8
avpadernoSee my previous comment.
The description is missing an article. Also, the usual description for that property does not say it is a definition.
Comment #9
kunalgautam commentedHello @apaderno thanks for reviewing.
Done all the changes you have mentioned in the comment.
Please review and let me know if anything is missing.
Comment #10
avpadernoA space is missing before the opening parenthesis in the translated strings, in all those lines. Remove i.e. which is not necessary.
An article is missing from that description.
Comment #11
arunkumarkUpdated the MR 8!
Comment #12
avpadernoThe comment on the previous commit was better, although an article was missing. This comment still misses an article, it uses Object when it is not necessary, and wrongly capitalizes the words that are not at the beginning of the phrase.
Comment #13
kunalgautam commentedComment #14
avpadernoI have already commented on these change on comment #5; on comment #8 also said the changes reported on comment #5 were not done. There is still a line that has not been correctly changed.
Words that are not at the beginning of a sentence are not written capitalized, if they are not acronyms nor proper nouns. Database is neither a proper noun nor an acronym.
Comment #15
anybody@kkalashnikov are you planning to work on this again?
Comment #19
themodularlabThis has been merged into the dev branch. It will be included in the next release. Thanks for everyone's help.