original_string: protected function methodAllowsGuests($class, $method)
      {
          try {
              $reflection = new ReflectionClass($class);
  
              $method = $reflection->getMethod($method);
          } catch (Exception $e) {
              return false;
          }
  
          if ($method) {
              $parameters = $method->getParameters();
  
              return isset($parameters[0]) && $this->parameterAllowsGuests($parameters[0]);
          }
  
          return false;
      }
code: protected function methodAllowsGuests($class, $method)
      {
          try {
              $reflection = new ReflectionClass($class);
  
              $method = $reflection->getMethod($method);
          } catch (Exception $e) {
              return false;
          }
  
          if ($method) {
              $parameters = $method->getParameters();
  
              return isset($parameters[0]) && $this->parameterAllowsGuests($parameters[0]);
          }
  
          return false;
      }
code_tokens: protected function methodAllowsGuests ( $ class , $ method ) { try { $ reflection = new ReflectionClass ( $ class ) ; $ method = $ reflection -> getMethod ( $ method ) ; } catch ( Exception $ e ) { return false ; } if ( $ method ) { $ parameters = $ method -> getParameters ( ) ; return isset ( $ parameters [ 0 ] ) && $ this -> parameterAllowsGuests ( $ parameters [ 0 ] ) ; } return false ; }
docstring: Determine if the given class method allows guests.
  
  @param  string  $class
  @param  string  $method
  @return bool
docstring_tokens: Determine if the given class method allows guests .