Problem/Motivation
urvasi@urvashi-vora:/var/www/html/contribution/drupal/web/modules/contrib$ phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,js,info,txt,md,yml,twig address_autocomplete_photon/
FILE: ...ddress_autocomplete_photon/js/plugin/address-autocomplete-photon.jquery.js
--------------------------------------------------------------------------------
FOUND 16 ERRORS AFFECTING 10 LINES
--------------------------------------------------------------------------------
18 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but
| | found "true"
44 | ERROR | [x] Expected 1 space before "-"; 0 found
44 | ERROR | [x] Expected 1 space after "-"; 0 found
44 | ERROR | [x] Expected 1 space before "-"; 0 found
44 | ERROR | [x] Expected 1 space after "-"; 0 found
71 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but
| | found "false"
84 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but
| | found "true"
93 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but
| | found "true"
108 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but
| | found "false"
197 | ERROR | [x] Expected 1 space before "="; 0 found
197 | ERROR | [x] Expected 1 space after "="; 0 found
256 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but
| | found "false"
273 | ERROR | [x] Expected 1 space before "="; 0 found
273 | ERROR | [x] Expected 1 space after "="; 0 found
485 | ERROR | [x] Expected 1 space before "="; 0 found
485 | ERROR | [x] Expected 1 space after "="; 0 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 16 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: ...ibution/drupal/web/modules/contrib/address_autocomplete_photon/README.md
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
60 | ERROR | [x] Expected 1 newline at end of file; 2 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
Time: 572ms; Memory: 14MB
urvasi@urvashi-vora:/var/www/html/contribution/drupal/web/modules/contrib$
Steps to reproduce
Execute the command: phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,js,info,txt,md,yml,twig address_autocomplete_photon/
Proposed resolution
Execute the command: phpcbf --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,js,info,txt,md,yml,twig address_autocomplete_photon/
for beautifying the code.
Remaining tasks
Patch review.