Refactoring Arr class.

This commit is contained in:
Taylor Otwell 2011-08-08 08:27:12 -05:00
parent 8130f2da25
commit ed52c19e05
1 changed files with 1 additions and 4 deletions

View File

@ -15,10 +15,7 @@ class Arr {
*/
public static function get($array, $key, $default = null)
{
if (is_null($key))
{
return $array;
}
if (is_null($key)) return $array;
foreach (explode('.', $key) as $segment)
{