Problem/Motivation

FILE: /var/www/html/drupal_cms/drupal9/web/modules/contrib/viewsreference/js/viewsreference.js
----------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------
 37 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
----------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------


FILE: /var/www/html/drupal_cms/drupal9/web/modules/contrib/viewsreference/src/Plugin/Field/FieldType/ViewsReferenceItem.php
---------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
---------------------------------------------------------------------------------------------------------------------------
  93 | ERROR | [x] Use null coalesce operator instead of ternary operator.
 112 | ERROR | [x] Use null coalesce operator instead of ternary operator.
 113 | ERROR | [x] Use null coalesce operator instead of ternary operator.
 114 | ERROR | [x] Use null coalesce operator instead of ternary operator.
---------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/drupal_cms/drupal9/web/modules/contrib/viewsreference/src/Plugin/Field/FieldFormatter/ViewsReferenceFieldFormatter.php
------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------
 98 | WARNING | Line exceeds 80 characters; contains 88 characters
------------------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/drupal_cms/drupal9/web/modules/contrib/viewsreference/src/Plugin/Field/ViewsReferenceFieldItemList.php
--------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------
 69 | ERROR | Missing parameter type
--------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/drupal_cms/drupal9/web/modules/contrib/viewsreference/src/Plugin/Field/FieldWidget/ViewsReferenceWidget.php
-------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------
 39 | ERROR | [x] Use null coalesce operator instead of ternary operator.
-------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/drupal_cms/drupal9/web/modules/contrib/viewsreference/src/Plugin/Field/FieldWidget/ViewsReferenceTrait.php
------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
------------------------------------------------------------------------------------------------------------------------------
  56 | ERROR | [x] Use null coalesce operator instead of ternary operator.
 323 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 405 | ERROR | [x] Use null coalesce operator instead of ternary operator.
------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------

Time: 215ms; Memory: 14MB
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

PrasadDeole created an issue. See original summary.

prasaddeole’s picture

StatusFileSize
new5.84 KB
prasaddeole’s picture

Assigned: prasaddeole » Unassigned
Status: Active » Needs review
erikaagp’s picture

Assigned: Unassigned » erikaagp

I'll review it

erikaagp’s picture

StatusFileSize
new80.44 KB

Hi, I applied the patch successfully but I realized that module had more phpcs errors on it (screenshot), so I fixed them. I pushed the changes with a commit on the branch. Needs another review now.

erikaagp’s picture

Assigned: erikaagp » Unassigned
gersonjl’s picture

Assigned: Unassigned » gersonjl

Hi, I'll review it

gersonjl’s picture

Assigned: gersonjl » Unassigned
Status: Needs review » Reviewed & tested by the community

No phpcs errors, moving to RTBC.

scott_euser made their first commit to this issue’s fork.

scott_euser’s picture

MR updated with latest code from 8x branch + validate step is now passing.

seanb’s picture

Status: Reviewed & tested by the community » Fixed

Merged, thanks!

seanb’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.