Use null coalesce operator instead of ternary operator.

Created on 24 October 2023, about 1 year ago

Problem/Motivation

FILE: ...var/www/html/drupal_cms/drupal9/web/modules/contrib/mailgun/modules/mailgun_mailing_lists/src/Plugin/Block/MailingListSubscribeBlock.php
----------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------------------
 106 | ERROR | Use null coalesce operator instead of ternary operator.
----------------------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/drupal_cms/drupal9/web/modules/contrib/mailgun/src/Form/MailgunAdminSettingsForm.php
--------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------
 227 | WARNING | Line exceeds 80 characters; contains 88 characters
--------------------------------------------------------------------------------------------------------


FILE: /var/www/html/drupal_cms/drupal9/web/modules/contrib/mailgun/src/Plugin/Mail/MailgunMail.php
--------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------
 108 | ERROR | Use null coalesce operator instead of ternary operator.
--------------------------------------------------------------------------------------------------

Time: 1.72 secs; Memory: 12MB

📌 Task
Status

Needs review

Version

2.0

Component

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