Commit ed52c19e authored by Taylor Otwell's avatar Taylor Otwell

Refactoring Arr class.

parent 8130f2da
......@@ -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)
{
......
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