original_string: protected static function _controllerMethods($className)
      {
          if (!class_exists($className)) {
              return [];
          }
  
          $methods = (array)get_this_class_methods($className);
          $actions = [];
          foreach ($methods as $methodName) {
              try {
                  $method = new ReflectionMethod($className, $methodName);
                  if ($method->isPublic()) {
                      $actions[] = $methodName;
                  }
              } catch (\ReflectionException $e) {
                  // error
              }
          }
  
          return $actions;
      }
code: protected static function _controllerMethods($className)
      {
          if (!class_exists($className)) {
              return [];
          }
  
          $methods = (array)get_this_class_methods($className);
          $actions = [];
          foreach ($methods as $methodName) {
              try {
                  $method = new ReflectionMethod($className, $methodName);
                  if ($method->isPublic()) {
                      $actions[] = $methodName;
                  }
              } catch (\ReflectionException $e) {
                  // error
              }
          }
  
          return $actions;
      }
code_tokens: protected static function _controllerMethods ( $ className ) { if ( ! class_exists ( $ className ) ) { return [ ] ; } $ methods = ( array ) get_this_class_methods ( $ className ) ; $ actions = [ ] ; foreach ( $ methods as $ methodName ) { try { $ method = new ReflectionMethod ( $ className , $ methodName ) ; if ( $ method -> isPublic ( ) ) { $ actions [ ] = $ methodName ; } } catch ( \ ReflectionException $ e ) { // error } } return $ actions ; }
docstring: Extracts method names of the given controller class.
  
  @param string $className Fully qualified name
  @return array List of method names
docstring_tokens: Extracts method names of the given controller class .