Skip to content

Instantly share code, notes, and snippets.

@mhlavac
Created November 29, 2015 18:26
Show Gist options
  • Save mhlavac/227bdd06301d2081bba3 to your computer and use it in GitHub Desktop.
Save mhlavac/227bdd06301d2081bba3 to your computer and use it in GitHub Desktop.
If you see this code... avoid the project! :-)
$a = getAllCars();
foreach ($a as $a1) {
$b1 = $a1;
$b1['name'] = $a1['name'] . '_';
// ... about 100 lines later...
if ($b1['name'] == $a1['name']) {
save($a2);
} else {
save($c);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment