Drupal Coding Standard Issues

Created on 3 August 2022, over 2 years ago
Updated 7 March 2023, over 1 year ago

$ phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml blazy_video_embed_field/
Xdebug: [Step Debug] Time-out connecting to debugging client, waited: 200 ms. Tried: localhost:9000 (through xdebug.client_host/xdebug.client_port) :-(

FILE: C:\Users\SI-001\Downloads\blazy_video_embed_field\src\Plugin\Field\FieldFormatter\BlazyVideoEmbedFieldTrait.php
------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 14 ERRORS AND 1 WARNING AFFECTING 12 LINES
------------------------------------------------------------------------------------------------------------------------------------------------
37 | ERROR | [x] Use null coalesce operator instead of ternary operator.
72 | ERROR | [x] Use null coalesce operator instead of ternary operator.
73 | ERROR | [x] Use null coalesce operator instead of ternary operator.
123 | ERROR | [x] Comma not allowed after last value in single-line array declaration
123 | ERROR | [x] Expected one space after the comma, 0 found
162 | WARNING | [x] '@todo: If any proper method to get video URL from image URI, or FID.' should match the format '@todo Fix problem X here.'
182 | ERROR | [x] Equals sign not aligned with surrounding assignments; expected 1 space but found 3 spaces
183 | ERROR | [x] Equals sign not aligned with surrounding assignments; expected 8 spaces but found 1 space
184 | ERROR | [x] Equals sign not aligned with surrounding assignments; expected 9 spaces but found 1 space
185 | ERROR | [x] Equals sign not aligned with surrounding assignments; expected 9 spaces but found 1 space
186 | ERROR | [x] Equals sign not aligned with surrounding assignments; expected 9 spaces but found 1 space
186 | ERROR | [x] Use null coalesce operator instead of ternary operator.
188 | ERROR | [x] Use null coalesce operator instead of ternary operator.
223 | ERROR | [x] Use null coalesce operator instead of ternary operator.
223 | ERROR | [x] Use null coalesce operator instead of ternary operator.
------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 15 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------------

Time: 328ms; Memory: 10MB

📌 Task
Status

Fixed

Version

2.0

Component

Code

Created by

🇮🇳India Rakhi Soni

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