Hi,

Remove unused use statement, please.

FILE: ...entityconnect/src/Element/EntityconnectSubmit.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
 5 | WARNING | [x] Unused use statement
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------


FILE: ...entityconnect/src/Controller/EntityconnectController.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
----------------------------------------------------------------------
 10 | WARNING | [x] Unused use statement
 11 | WARNING | [x] Unused use statement
----------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------


FILE: ...entityconnect/src/EntityconnectFormUtils.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
----------------------------------------------------------------------
  6 | WARNING | [x] Unused use statement
  9 | WARNING | [x] Unused use statement
 12 | WARNING | [x] Unused use statement
----------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------


FILE: ...entityconnect/entityconnect.module
----------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
----------------------------------------------------------------------
  9 | WARNING | [x] Unused use statement
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------

Thank you

Comments

mgoncalves created an issue. See original summary.

mgoncalves’s picture

Assigned: mgoncalves » Unassigned
Status: Active » Needs review
StatusFileSize
new2.03 KB
hgunicamp’s picture

Status: Needs review » Reviewed & tested by the community

I tested the patch and it worked for me.

cit008490cpsubuntu:entityconnect progestag* 8.x-2.x$ find .  -type f \( -name '*.php' -or -name '*.module' -or -name '*.yml' \) -exec
phpcs --standard=Drupal {} \+ | grep -i unused
cit008490cpsubuntu:entityconnect progestag* 8.x-2.x$ git checkout .
cit008490cpsubuntu:entityconnect progestag* 8.x-2.x$ find .  -type f \( -name '*.php' -or -name '*.module' -or -name '*.yml' \) -exec
phpcs --standard=Drupal {} \+ | grep -i unused
  9 | WARNING | [x] Unused use statement
  10 | WARNING | [x] Unused use statement
  11 | WARNING | [x] Unused use statement
   5 | WARNING | [x] Unused use statement
   6 | WARNING | [x] Unused use statement
   9 | WARNING | [x] Unused use statement
  12 | WARNING | [x] Unused use statement
cit008490cpsubuntu:entityconnect progestag* 8.x-2.x$ patch -p1 < ~/drupal/Patches/entity_connect-remove_unused_use_statement-2877090-2-8x
.patch
patching file entityconnect.module
patching file src/Controller/EntityconnectController.php
patching file src/Element/EntityconnectSubmit.php
patching file src/EntityconnectFormUtils.php
cit008490cpsubuntu:entityconnect progestag* 8.x-2.x$ find .  -type f \( -name '*.php' -or -name '*.module' -or -name '*.yml' \) -exec
phpcs --standard=Drupal {} \+ | grep -i unused | wc -l
0

amaria’s picture

Committed to dev.

amaria’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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