Drupal Coding Standards Issues | phpcs

Created on 24 January 2023, almost 2 years ago
Updated 30 January 2023, almost 2 years ago

Problem/Motivation

FILE: ...s/sahil.goyal/Documents/MySites/10.1.x/drupal/modules/contrib/read_more_field/src/Plugin/Field/FieldWidget/ReadMoreDefaultWidget.php
------------------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
------------------------------------------------------------------------------------------------------------------------------------------
32 | ERROR | [x] Use null coalesce operator instead of ternary operator.
33 | ERROR | [x] Use null coalesce operator instead of ternary operator.
34 | ERROR | [x] Use null coalesce operator instead of ternary operator.
35 | ERROR | [x] Use null coalesce operator instead of ternary operator.
------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------

Steps to reproduce

phpcs --standard="Drupal,DrupalPractice" --extensions=php,module,inc,install,test,profile,theme,info,txt,md,yml /Users/sahil.goyal/Documents/MySites/10.1.x/drupal/modules/contrib/read_more_field

Proposed resolution

fixing there corresponding issues.

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ› Bug report
Status

RTBC

Version

1.1

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia sahil.goyal

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

Comments & Activities

Production build 0.71.5 2024