Commit f1162cd5 authored by jepso's avatar jepso

use array_map instead of foreach loop

parent 300669d1
......@@ -135,10 +135,10 @@ class Doctrine_Locator implements Countable, IteratorAggregate
$className = $name;
if ( ! class_exists($className)) {
$name = explode('.', $name);
foreach ($name as $k => $value) {
$name[$k] = ucfirst(strtolower($value));
}
$name = array_map('strtolower', $name);
$name = array_map('ucfirst', $name);
$name = implode('_', $name);
$className = $this->_classPrefix . $name;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment