1
0
mirror of synced 2025-01-18 22:41:43 +03:00

use array_map instead of foreach loop

This commit is contained in:
jepso 2007-10-08 16:12:02 +00:00
parent 300669d13a
commit f1162cd56d

View File

@ -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;