original_string: public function groups($driver = null)
  	{
  		$result = array();
  
  		if ($driver === null)
  		{
  			foreach (\Auth::group(true) as $group)
  			{
  				method_exists($group, 'groups') and $result = \Arr::merge($result, $group->groups());
  			}
  		}
  		else
  		{
  			$result = \Auth::group($driver)->groups();
  		}
  
  		return $result;
  	}
code: public function groups($driver = null)
  	{
  		$result = array();
  
  		if ($driver === null)
  		{
  			foreach (\Auth::group(true) as $group)
  			{
  				method_exists($group, 'groups') and $result = \Arr::merge($result, $group->groups());
  			}
  		}
  		else
  		{
  			$result = \Auth::group($driver)->groups();
  		}
  
  		return $result;
  	}
code_tokens: public function groups ( $ driver = null ) { $ result = array ( ) ; if ( $ driver === null ) { foreach ( \ Auth :: group ( true ) as $ group ) { method_exists ( $ group , 'groups' ) and $ result = \ Arr :: merge ( $ result , $ group -> groups ( ) ) ; } } else { $ result = \ Auth :: group ( $ driver ) -> groups ( ) ; } return $ result ; }
docstring: Returns the list of defined groups
  
  @return  array
docstring_tokens: Returns the list of defined groups