Closed (fixed)
Project:
Drupal core
Version:
9.1.x-dev
Component:
search.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
28 Sep 2020 at 13:31 UTC
Updated:
9 Nov 2020 at 13:49 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #2
shetpooja04 commentedCommit ID: ce189a3f
Link: https://git.drupalcode.org/project/drupal/-/commit/ce189a3f752e15bdeb92f620cff7a1fc72b8de41
File: core/modules/search/tests/src/Functional/SearchBlockTest.php Line: 130
For Issue: https://www.drupal.org/project/drupal/issues/3067943 the variable is added but not used
Please review
Comment #3
ranjith_kumar_k_u commentedThe above patch applied successfully ,it removes unused variable $email in SearchBlockTest.php.RTBC
Comment #4
ranjith_kumar_k_u commentedComment #6
meena.bisht commentedAdding patch Removing $email variable and doing additional changes as was came across while running phpcs attaching screenshot.
Comment #7
meena.bisht commentedComment #8
sulfikar_s commentedHi,
I've applied the patch on the #6 and it applied cleanly. The patch removes $email variable and also the drupal standards are fixed in the line 96 & 116 (of SearchBlockTest.php) as the array contents are properly splitted over mulitple lines.
RTBC.
Comment #9
sulfikar_s commentedComment #10
quietone commented@sulfikar_s, Welcome to Drupal! Nice clear description of what you did to review this issue.
All these changes are out of scope. The issue title and summary states that this issue is to remove an unused variable. Anything outside of that must be done in a separate issue. And coding standard fixes are usually done in bulk by type not on individual files.
And lets update the issue summary. Adding the information that is in #2 would save the reviewer from having to read the issue to find that information. And the screenshot isn't necessary, we all have editors and can look at the file.
Comment #11
Pooja Ganjage commentedHi,
I am updating patch as per #10 comments.
Please review the patch.
Thanks.
Comment #12
Pooja Ganjage commentedComment #13
Pooja Ganjage commentedComment #15
abhijith s commentedApplied patch #11 on 9.2.x.It works fine
RTBC
Comment #16
jijojoseph_zyxware commentedThanks for researching this, I agree with your findings that we don't need this variable.
Patch#11 applied cleanly.
RTBC!!!
Comment #18
longwaveRandom fail. Also updated IS.
Comment #21
catchCommitted a33344f and pushed to 9.2.x. Thanks!