Problem/Motivation
FILE: /var/www/html/contribution/drupal10/web/modules/contrib/wordsonline_connector/js/global.js
------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------
2 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------
FILE: /var/www/html/contribution/drupal10/web/modules/contrib/wordsonline_connector/js/job_form.js
--------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 4 LINES
--------------------------------------------------------------------------------------------------
28 | ERROR | [x] Inline control structures are not allowed
28 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
32 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
33 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
37 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------
FILE: /var/www/html/contribution/drupal10/web/modules/contrib/wordsonline_connector/js/wordsonline-job.js
---------------------------------------------------------------------------------------------------------
FOUND 23 ERRORS AFFECTING 22 LINES
---------------------------------------------------------------------------------------------------------
11 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
15 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
16 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
31 | ERROR | [ ] String concat is not required here; use a single string instead
42 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
47 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
51 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
63 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
66 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
75 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
92 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
117 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
164 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
179 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
246 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
250 | ERROR | [x] Inline control structures are not allowed
257 | ERROR | [x] Inline control structures are not allowed
311 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
323 | ERROR | [x] Inline control structures are not allowed
323 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
327 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
328 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
337 | ERROR | [x] Expected 1 newline at end of file; 0 found
---------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 22 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------
FILE: /var/www/html/contribution/drupal10/web/modules/contrib/wordsonline_connector/js/wordsonline.js
-----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------
1 | ERROR | [x] Additional whitespace found at start of file
-----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------
FILE: /var/www/html/contribution/drupal10/web/modules/contrib/wordsonline_connector/src/WordsOnlineTranslatorUi.php
-------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
-------------------------------------------------------------------------------------------------------------------
287 | WARNING | #options values usually have to run through t() for translation
288 | WARNING | #options values usually have to run through t() for translation
289 | WARNING | #options values usually have to run through t() for translation
290 | WARNING | #options values usually have to run through t() for translation
-------------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/contribution/drupal10/web/modules/contrib/wordsonline_connector/src/Form/UpdateForm.php
-----------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------
207 | WARNING | Unused variable $files.
-----------------------------------------------------------------------------------------------------------
Time: 3.16 secs; Memory: 18MB
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 wordsonline_connector/
Proposed resolution
Execute PHPCBF command and fix all remaining issues after beautifying the code.
Remaining tasks
Patch review.
And one issue remains:
FILE: /var/www/html/contribution/drupal10/web/modules/contrib/wordsonline_connector/src/Form/UpdateForm.php
-----------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------
207 | WARNING | Unused variable $files.
-----------------------------------------------------------------------------------------------------------
Time: 3.17 secs; Memory: 18MB