Comments

chertzog’s picture

Status: Active » Needs review

As far as i know this $total is needed in this situation. So this would be a close works as designed.

      foreach ($this->multiply as $total) {
        $this->scoresArguments[':total_' . $i] = $sum;
        $i++;
      }
beowulf1416’s picture

StatusFileSize
new609 bytes

replaced foreach loop with for loop to remove unused local variable

beowulf1416’s picture

StatusFileSize
new613 bytes

fixed bug on patch

Status: Needs review » Needs work

The last submitted patch, 2080551-remove_unused_variables-7828157.patch, failed testing.

beowulf1416’s picture

Status: Needs work » Needs review
StatusFileSize
new1.18 KB
areke’s picture

Issue summary: View changes
Status: Needs review » Needs work
Issue tags: +Needs reroll

The patch doesn't apply anymore, so it should be re-rolled.

deneo’s picture

Status: Needs work » Needs review
StatusFileSize
new769 bytes
deneo’s picture

The last submitted patch, 7: drupal-core_remove-unused-variable-2080551-7.patch, failed testing.

areke’s picture

Status: Needs review » Reviewed & tested by the community

Using a for loop is better in this case because of the fact that it removes the unused local variable. It also makes the code a little more readable. The latest patch applies cleanly and does what it's supposed to do so... RTBC.

areke’s picture

Status: Needs review » Reviewed & tested by the community

Using a for loop is better in this case because of the fact that it removes the unused local variable. It also makes the code a little more readable. The latest patch applies cleanly and does what it's supposed to do so... RTBC.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Very strange. Wonder why it was that way to begin with.

Committed and pushed to 8.x. Thanks!

Status: Fixed » Closed (fixed)

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