Coding Standard fix | phpcs

Created on 12 December 2022, almost 2 years ago
Updated 22 February 2023, over 1 year ago

getting following issues and warnings in phpcs

FILE: /Applications/MAMP/htdocs/d9/web/modules/contrib/node_title_validation/src/Form/NodeTitleValidationAdminForm.php
----------------------------------------------------------------------------------------------------------------------
FOUND 8 ERRORS AND 1 WARNING AFFECTING 9 LINES
----------------------------------------------------------------------------------------------------------------------
15 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
100 | ERROR | [x] Use null coalesce operator instead of ternary operator.
107 | ERROR | [x] Use null coalesce operator instead of ternary operator.
118 | ERROR | [x] Use null coalesce operator instead of ternary operator.
128 | ERROR | [x] Use null coalesce operator instead of ternary operator.
138 | ERROR | [x] Use null coalesce operator instead of ternary operator.
147 | ERROR | [x] Use null coalesce operator instead of ternary operator.
155 | ERROR | [x] Use null coalesce operator instead of ternary operator.
162 | ERROR | [x] Use null coalesce operator instead of ternary operator.
----------------------------------------------------------------------------------------------------------------------

FILE: /Applications/MAMP/htdocs/d9/web/modules/contrib/node_title_validation/src/Plugin/Validation/Constraint/NodeTitleConstraintValidator.php
----------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------------------
108 | ERROR | [x] Use null coalesce operator instead of ternary operator.
----------------------------------------------------------------------------------------------------------------------------------------------

๐Ÿ› Bug report
Status

RTBC

Version

2.0

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia noorulshameera

Live updates comments and jobs are added and updated live.
  • Coding standards

    It involves compliance with, or the content of coding standards. Requires broad community agreement.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024