Problem/Motivation

FILE: /var/www/html/drupal_cms/drupal9/web/modules/contrib/weight/src/Plugin/Field/FieldWidget/WeightSelectorWidget.php
-----------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------
 26 | 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/weight/src/Plugin/views/field/WeightSelector.php
-----------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------
 117 | 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/weight/weight.views.inc
----------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------
 17 | WARNING | Unused variable $table_name.
----------------------------------------------------------------------------------

Time: 122ms; Memory: 12MB

Issue fork weight-3318185

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
new1.78 KB
prasaddeole’s picture

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

Assigned: Unassigned » dharti patel
dharti patel’s picture

StatusFileSize
new2.09 KB

Hello,

I reviewed the #2 patch, but after applying this patch, one issue remains.

FILE: /home/drupal/d9-open/weight/weight.module
----------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------
 13 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
----------------------------------------------------------------------------------------------------------------------------

Fixed the above issue and create a new patch for the same.
Please review the patch.

Thanks!

prasaddeole’s picture

Assigned: dharti patel » Unassigned
atul_ghate’s picture

Assigned: Unassigned » atul_ghate

Hi,
I will review this patch.

atul_ghate’s picture

Assigned: atul_ghate » Unassigned
Status: Needs review » Reviewed & tested by the community
StatusFileSize
new106.68 KB

I have reviewed and applied the patch cleanly. It looks good to me, RTBC

renatog’s picture

Issue tags: -Coding standards

I also tested and #5 still being applied into 8.x-3.x and is really working fine without errors on phpcs, so +1 to it

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

Neslee Canil Pinto made their first commit to this issue’s fork.

neslee canil pinto’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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