Drupal Coding Standard As Per 'phpcs --standard=Drupal'

Created on 20 August 2022, almost 2 years ago
Updated 18 June 2023, about 1 year ago

$ phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml entitygroupfield/
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\entitygroupfield\entitygroupfield.tokens.inc
--------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------------
44 | ERROR | The array declaration extends to column 102 (the limit is 80). The array content should be split up over multiple lines
--------------------------------------------------------------------------------------------------------------------------------------

FILE: C:\Users\SI-001\Downloads\entitygroupfield\README.md
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
174 | WARNING | Line exceeds 80 characters; contains 82 characters
----------------------------------------------------------------------

FILE: C:\Users\SI-001\Downloads\entitygroupfield\src\Plugin\Field\FieldWidget\EntityGroupFieldWidgetBase.php
-------------------------------------------------------------------------------------------------------------------------------------------
FOUND 9 ERRORS AFFECTING 9 LINES
-------------------------------------------------------------------------------------------------------------------------------------------
159 | ERROR | [x] Use null coalesce operator instead of ternary operator.
169 | ERROR | [x] Use null coalesce operator instead of ternary operator.
207 | ERROR | [x] Use null coalesce operator instead of ternary operator.
470 | ERROR | [ ] The array declaration extends to column 121 (the limit is 80). The array content should be split up over multiple lines
703 | ERROR | [x] Use null coalesce operator instead of ternary operator.
823 | ERROR | [x] Use null coalesce operator instead of ternary operator.
824 | ERROR | [x] Use null coalesce operator instead of ternary operator.
837 | ERROR | [x] Use null coalesce operator instead of ternary operator.
838 | ERROR | [x] Use null coalesce operator instead of ternary operator.
-------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------

FILE: C:\Users\SI-001\Downloads\entitygroupfield\tests\src\FunctionalJavascript\EntityGroupFieldWidgetTest.php
------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 10 ERRORS AND 1 WARNING AFFECTING 11 LINES
------------------------------------------------------------------------------------------------------------------------------------------------
267 | ERROR | [ ] The array declaration extends to column 161 (the limit is 80). The array content should be split up over multiple lines
269 | ERROR | [ ] The array declaration extends to column 177 (the limit is 80). The array content should be split up over multiple lines
284 | ERROR | [ ] The array declaration extends to column 96 (the limit is 80). The array content should be split up over multiple lines
285 | ERROR | [ ] The array declaration extends to column 96 (the limit is 80). The array content should be split up over multiple lines
374 | ERROR | [ ] The array declaration extends to column 88 (the limit is 80). The array content should be split up over multiple lines
395 | ERROR | [ ] The array declaration extends to column 88 (the limit is 80). The array content should be split up over multiple lines
500 | ERROR | [ ] The array declaration extends to column 88 (the limit is 80). The array content should be split up over multiple lines
503 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
507 | ERROR | [ ] The array declaration extends to column 96 (the limit is 80). The array content should be split up over multiple lines
508 | ERROR | [ ] The array declaration extends to column 96 (the limit is 80). The array content should be split up over multiple lines
510 | WARNING | [x] '@todo: Anything else we should test with both A and B groups that we' should match the format '@todo Fix problem X here.'
------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------------

Time: 1.1 secs; Memory: 16MB

📌 Task
Status

Fixed

Version

1.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.69.0 2024