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

File /core/modules/locale/locale.bulk.inc

Line 555: Unused local variable $filepath

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mrsinguyen’s picture

Status: Active » Needs review
FileSize
696 bytes

Attached patch.

boran’s picture

Assigned: Unassigned » boran

The patch is a one liner, and looks good:
- grepped to look for $filepath, it is used in several places. In this case the variable not used within that scope.
- Also used phpstorm to "find usages", same result.
- According to the php spec, this patch uses foreach() correctly
http://php.net/manual/en/control-structures.foreach.php

- The patch applies cleanly and the variable is effectively removed.
- The sample website does not fall over.

boran’s picture

Status: Needs review » Reviewed & tested by the community
alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed a34cb25 and pushed to 8.x. Thanks!

Committed as part of a merged commit for #2002650: [meta, no patch] improve maintainability by removing unused local variables

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