Part of meta-issue #2002650: [meta, no patch] improve maintainability by removing unused local variables

File /core/modules/syslog/lib/Drupal/syslog/Tests/SyslogTest.php

Line 39: Unused local variable $edit

Comments

mrsinguyen’s picture

haza’s picture

Status: Active » Needs review
parthipanramesh’s picture

Issue summary: View changes
Status: Needs review » Needs work

patching failed..

areke’s picture

Status: Needs work » Needs review
StatusFileSize
new1.03 KB

Status: Needs review » Needs work

The last submitted patch, 4: 2081115-4.patch, failed testing.

deneo’s picture

Status: Needs work » Needs review
StatusFileSize
new709 bytes
areke’s picture

4: 2081115-4.patch queued for re-testing.

xjm’s picture

Title: Remove Unused local variable $edit from /core/modules/syslog/lib/Drupal/syslog/Tests/SyslogTest.php » Remove Unused local variables from the syslog module
Component: other » syslog.module
Priority: Normal » Minor

Let's also check the rest of the module and confirm that there are no other unused local variables.

enhdless’s picture

Patch #6 works great.

eugenesia’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +LONDON_2013_DECEMBER

Just finishing up the issue I started looking at in LONDON_2013_DECEMBER yesterday. I applied patch #6, and all Simpletest tests passed for the syslog module. I checked visually and with PhpStorm and I confirm that there are no other unused local variables in the syslog module.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed to 8.x. Thanks!

Status: Fixed » Closed (fixed)

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