Module is not compitable to Drupal coding standard.

Created on 30 December 2022, about 2 years ago
Updated 15 July 2024, 7 months ago

Problem/Motivation

$ phpcs --standard=drupal page_attach_library

FILE: ...web\modules\page_attach_library\src\Form\PageAttachLibrarySettingsForm.php
--------------------------------------------------------------------------------
FOUND 5 ERRORS AND 1 WARNING AFFECTING 6 LINES
--------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found
| | "\r\n"
11 | WARNING | [ ] The class short comment should describe what the class
| | does and not simply repeat the class name
105 | ERROR | [x] Use null coalesce operator instead of ternary operator.
114 | ERROR | [x] Use null coalesce operator instead of ternary operator.
123 | ERROR | [x] Use null coalesce operator instead of ternary operator.
142 | ERROR | [x] Use null coalesce operator instead of ternary operator.
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India Jitendra_Kumar

Live updates comments and jobs are added and updated live.
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