Drupal Coding Standard PHPCS

Created on 22 September 2022, about 2 years ago
Updated 8 July 2024, 5 months ago
FILE: /home/drupal/d9-open/entityconnect/tests/src/Functional/EntityconnectTestBase.php
----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
 68 | ERROR | The array declaration extends to column 102 (the limit is 80). The array content should be split up over multiple lines
----------------------------------------------------------------------------------------------------


FILE: /home/drupal/d9-open/entityconnect/tests/src/Functional/EntityconnectAddTest.php
----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
 74 | ERROR | The array declaration extends to column 91 (the limit is 80). The array content should be split up over multiple lines
----------------------------------------------------------------------------------------------------

FILE: /home/drupal/d9-open/entityconnect/src/EntityconnectFormUtils.php
----------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
----------------------------------------------------------------------------------------------------
 289 | WARNING | [x] '@ToDo: probably need something to happen in this case.' should match the format '@todo Fix problem X here.'
 296 | ERROR   | [x] Use null coalesce operator instead of ternary operator.
 402 | ERROR   | [ ] The array declaration extends to column 95 (the limit is 80). The array content should be split up over multiple lines
----------------------------------------------------------------------------------------------------


FILE: /home/drupal/d9-open/entityconnect/src/Element/EntityconnectSubmit.php
----------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AND 1 WARNING AFFECTING 4 LINES
----------------------------------------------------------------------------------------------------
  30 | ERROR   | [ ] Long array syntax must not be used in doc comment code annotations
  94 | WARNING | [x] '@todo: Probably should validate the fields that were entered.' should match the format '@todo Fix problem X here.'
 115 | ERROR   | [x] Use null coalesce operator instead of ternary operator.
 122 | ERROR   | [x] Use null coalesce operator instead of ternary operator.
----------------------------------------------------------------------------------------------------

FILE: /home/drupal/d9-open/entityconnect/src/Controller/EntityconnectController.php
----------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
----------------------------------------------------------------------------------------------------
 168 | ERROR | [ ] The array declaration extends to column 135 (the limit is 80). The array content should be split up over multiple lines
 286 | ERROR | [ ] The array declaration extends to column 135 (the limit is 80). The array content should be split up over multiple lines
 329 | ERROR | [x] Each PHP statement must be on a line by itself
 339 | ERROR | [x] Each PHP statement must be on a line by itself
 372 | ERROR | [ ] The array declaration extends to column 94 (the limit is 80). The array content should be split up over multiple lines
----------------------------------------------------------------------------------------------------


FILE: /home/drupal/d9-open/entityconnect/src/EntityconnectWidgetProcessor.php
------------------------------------------------------------------------------------
FOUND 1 ERROR AND 3 WARNINGS AFFECTING 3 LINES
------------------------------------------------------------------------------------
 154 | ERROR   | [x] Use null coalesce operator instead of ternary operator.
 173 | WARNING | [ ] Unused variable $widgetElement.
 173 | WARNING | [ ] Unused variable $widgetElement.
 177 | WARNING | [ ] Unused variable $widgetElement.
------------------------------------------------------------------------------------


FILE: /home/drupal/d9-open/entityconnect/assets/js/entityconnect.js
---------------------------------------------------------------------------------------------
FOUND 12 ERRORS AFFECTING 12 LINES
---------------------------------------------------------------------------------------------
  8 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 12 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 16 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 22 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 32 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 43 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 46 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 51 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 54 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 59 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 84 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
 86 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
---------------------------------------------------------------------------------------------
📌 Task
Status

Closed: duplicate

Version

2.0

Component

Documentation

Created by

🇮🇳India Dharti Patel

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