[WTF] Avoid Mental Mapping
PretorDH opened this issue · comments
Invalid "foreach" loop.
$locations = ['Austin', 'New York', 'San Francisco'];
foreach( $locations as $i=>$location ) {
// $location = $locations[$i];
doStuff();
doSomeOtherStuff();
// ...
// ...
// ...
dispatch($location);
});