Refactoring the config class.

This commit is contained in:
Taylor Otwell 2011-08-08 08:48:44 -05:00
parent 1091bd8591
commit 5e28cd08b4
1 changed files with 1 additions and 3 deletions

View File

@ -79,9 +79,7 @@ private static function parse($key)
if ($module !== 'application') $key = substr($key, strpos($key, ':') + 2);
$segments = explode('.', $key);
$key = (count($segments) > 1) ? implode('.', array_slice($segments, 1)) : null;
$key = (count($segments = explode('.', $key)) > 1) ? implode('.', array_slice($segments, 1)) : null;
return array($module, $segments[0], $key);
}