Use null coalesce operator instead of ternary operator.

Created on 9 August 2024, 4 months ago
Updated 31 August 2024, 4 months ago

Problem/Motivation



FILE: ...var/www/html/drupal9.3.0/web/modules/contrib/focal_point/js/focal_point.js
--------------------------------------------------------------------------------
FOUND 11 ERRORS AFFECTING 10 LINES
--------------------------------------------------------------------------------
  8 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 15 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 16 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 30 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 39 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 40 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 40 | ERROR | [x] Expected 1 space before opening brace; found 0
 42 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 53 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 60 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 81 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
--------------------------------------------------------------------------------


FILE: ...w/html/drupal9.3.0/web/modules/contrib/focal_point/focal_point.effects.inc
--------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------
 70 | ERROR | Use null coalesce operator instead of ternary operator.
 80 | ERROR | Use null coalesce operator instead of ternary operator.
--------------------------------------------------------------------------------

📌 Task
Status

Needs review

Version

2.0

Component

Other Code

Created by

🇮🇳India Rohit Rana

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

Comments & Activities

Production build 0.71.5 2024