Commit ed52c19e authored by Taylor Otwell's avatar Taylor Otwell

Refactoring Arr class.

parent 8130f2da
...@@ -15,10 +15,7 @@ class Arr { ...@@ -15,10 +15,7 @@ class Arr {
*/ */
public static function get($array, $key, $default = null) public static function get($array, $key, $default = null)
{ {
if (is_null($key)) if (is_null($key)) return $array;
{
return $array;
}
foreach (explode('.', $key) as $segment) 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