Problem/Motivation
Fix issue reported by PHPCS
Steps to reproduce
vendor/bin/phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,php /social_search_autocomplete/
FILE: /contrib/social_search_autocomplete/README.md
---------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 2 WARNINGS AFFECTING 3 LINES
---------------------------------------------------------------------------------------------
13 | WARNING | [ ] Line exceeds 80 characters; contains 212 characters
14 | WARNING | [ ] Line exceeds 80 characters; contains 173 characters
37 | ERROR | [x] Expected 1 newline at end of file; 0 found
---------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------
FILE: /social_search_autocomplete/social_search_autocomplete.install
----------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
35 | ERROR | [x] Doc comment short description must end with a full stop
----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------
FILE: /social_search_autocomplete/config/update/social_search_autocomplete_update_8002.yml
--------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------------------
27 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------------
FILE: /social_search_autocomplete/social_search_autocomplete.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: /social_search_autocomplete/social_search_autocomplete.post_update.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
------------------------------------------------------------------------------------------------------------------------------
FILE: /social_search_autocomplete/css/search-suggestion.css
-------------------------------------------------------------------------------------------------------------
FOUND 8 ERRORS AFFECTING 8 LINES
-------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
5 | ERROR | [x] Blank lines are not allowed in class definitions
7 | ERROR | [x] Blank lines are not allowed in class definitions
16 | ERROR | [x] Blank lines are not allowed in class definitions
27 | ERROR | [x] Blank lines are not allowed in class definitions
30 | ERROR | [x] Blank lines are not allowed in class definitions
34 | ERROR | [x] CSS colours must be defined in lowercase; expected #9b9b9b but found #9B9B9B
40 | ERROR | [x] Blank lines are not allowed in class definitions
-------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------
Comments
Comment #2
shashank5563 commentedComment #3
shashank5563 commented@nishant, I have created patch for this issue. Please review and merge.
Comment #4
shashank5563 commentedComment #6
nishant@shashank5563, Please check once, getting error while applying patch, Attaching SS for reference.
Comment #8
nishantReviewed above patch and Merge it in latest branch.
Thanks @shashank5563