Fix JS coding issues

Created on 20 May 2024, about 1 month ago
Updated 21 May 2024, about 1 month ago

Using branch 1.0.x there is a few code style issues in the javascript library. You may also want to run this by eslint.

$ phpcs --standard=Drupal,DrupalPractice advanced_mautic_integration

FILE: ...html/web/modules/contrib/advanced_mautic_integration/js/tracking_events.js
--------------------------------------------------------------------------------
FOUND 8 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------
 48 | ERROR | [x] Expected 1 space before "?"; 0 found
 48 | ERROR | [x] Expected 1 space after "?"; 0 found
 48 | ERROR | [x] Expected 1 space before ":"; 0 found
 48 | ERROR | [x] Expected 1 space after ":"; 0 found
 56 | ERROR | [x] Expected 1 space before "?"; 0 found
 56 | ERROR | [x] Expected 1 space after "?"; 0 found
 56 | ERROR | [x] Expected 1 space before "?"; 0 found
 56 | ERROR | [x] Expected 1 space after "?"; 0 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

Time: 148ms; Memory: 6MB
📌 Task
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

🇵🇱Poland gpietrzak Wrocław

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024